instruction
stringlengths
9
38.7k
I am new to Copulas and am trying to conceptually understand that differences between the two main types of Copulas: Regular Copulas and Vine Copulas. Both are used to simulate data from correlated multivariate probability distributions (which is a difficult problem) - especially in situations where the marginal distri...
Reading Is there a formula for the 95% confidence interval for the Skellam distribution or difference of two Poisson r.v.'s?, I realized that I would rather have the quantile function. Unfortunately Wiki indicates a modified Bessel function of the first kind is in the probability mass function, which means I don't know...
Performance Analysis of Self-Supervised Strategies for Standard Genetic Programming 1 INTRODUCTION Self-supervised learning (SSL) methods have been widely used to train deep learning models for computer vision and natural language processing domains. This training paradigm works by leveraging large amounts of unlabe...
when saw bayes theorem prior and evidence, it has similarity to joint probability (A n B). so is there really a clear difference between them???
I would like to compute the Bernoulli trials with different probabilities, but the probability is only changed after success. Such as here, all probability, p, is different at each state, s, in the figure below; s: (0, 1, ..., m). The figure is the representation of the Bernoulli trials. The trial will start from the ...
I have two groups of people, and I want to determine if there's a significant difference based on their language. My data consist of word frequencies (how many times a person sayed a given word in a given time range), thus their contingency table looks like this: I used the chi-squared test to compare the sums of word...
In literature, I have seen two types of Anderson-Darling test statistic. One is expressed as $A_T^2 = n\int_{-\infty}^{\infty}\frac{(F_n(x)-F(x))^2}{F(x)(1-F(x))}dF(x)$ and the other is given by $A_s^2 = -n-\sum_{i=1}^{n}\frac{2i-1}{n}[\ln F(Y_i)+\ln(1-F(Y_{n+1-i}))]$, where $Y_1, Y_2,\cdots, Y_n$ are ordered samples. ...
Let's suppose we have something like a classification problem. We have a training dataset where every record has its class label. There are several classes and classes don't overlap. The data that model should be making predictions for will be divided into clusters and we know that every cluster corresponds to a single...
I want to ensure that I am correctly interpreting AIC relative likelihood (RL) scores, specifically those returned by qpcR::akaike.weights$rel.LL. For example, I compare two models, and get: $rel.LL [1] 0.0442598 1.0000000 Summing to 1.044. However, if I feed qpcR::akaike.weights() the same AIC twice, I get: $rel.LL [...
I cannot find somewhere where it is clearly stated the difference between using coxme and coxph functions in R. My interest is mostly in the case of simple random effects. I don't have a real data to work on but let's imagine a vey simple situation: I have a dataset that includes data from a cohort recruited in a speci...
[In case you feel inclined to close this question because I'm asking for a dataset - I'm looking for solutions in the spirit of point 2 (on-topic) in the accepted answer to this question about asking for datasets on CVMeta.] I am looking for reference datasets to showcase conditional density estimation. Many statistica...
I am aware that there are many answers to many posts on this topic (see: 1,2, 3). Generally, the common answer is that this is 'best practice', it avoids 'data leakage' or overfitting. Is there a scientific basis and proof to these claims? One academic source mentionned was page 222 of this book, but I cannot see why a...
I have a dataset with 4 features and n observations. I have done a Principal Components Analysis using only 3 features. Now I need to find the correlation between the extra feature and the principal components that I already have. How can I do this? I'm more interested in the mathematical explanation than in the python...
I am working on an assignment where the objective is to predict housing prices. My initial approach involves using an Ordinary Least Squares model. Following this, I plan to make a Random Forest model for comparison. Generally, it is understood that these 'black-box' machine learning algorithms offer better predictive ...
Classical least squares results in regression in statistics state that if $(Y, X)$ follow a model where $$\mathbb{E}[Y\mid X=x] = \alpha + \beta x,$$ we can estimate $\beta$ from a random sample using LS explicitly as the second component of $\hat{\beta} = (\textbf{X}^t\textbf{X})^{-1}\textbf{X}^t\textbf{Y}$, where $\...
We have fitted a multilevel multinomial logistic regression model to our data. We have obtained relative risk ratios(RRR). For most of the independent variables RRR have usual values, like 0.49, 0.78, 2.45, 1.78, etc. But, only for a ordinal variable which has three categories, one of the categories have RRR value 1155...
I've been working with an industry-related dataset where I need to analyze the correlation between a specific output (y) and several inputs (x1, x2, x3, etc.). During my search, I came across various correlation analysis methods such as Pearson, Kendall, Spearman, and Mutual Information. However, I'm facing a challenge...
I have data wherein mice have been subject to a study multiple times, the repetitions were 4 trials per mouse. Is the correct random structure, presuming random intercepts, (1 | Mouse) or (1 | Mouse/Trial), where trial is nested within mouse. My first guess would be that nesting trials within mouse would be overspecify...
I’m running multicollinearity checks on OLS regressions in stata (with 60 and 40 observations). The VIFs were not cause for concern (i.e., < 10) but the condition number in some cases was 300. I dropped one control variable and this reduced the condition number to <20 but it also means I lose one of two controls. I’m a...
When doing Bayesian inference on a parameter that is bounded, often we use priors that approach 0 as the parameter approaches the boundary. For example, when estimating $(\mu, \sigma^2)$ for normal data, the conjugate prior on $\sigma^2$ is inverse $\chi^2$ for some choice of hyperparameters. This prior has density 0 a...
I performed a CoxPH analysis on a sample dataset that yielded the following results: Univariate analysis: 0.40 (0.20 - 0.88). P value: 0.02 Multivariate analysis: 0.44 (0.24 - 0.94). P value: 0.03 I then ran a KM analysis on the same dataset that yielded a statistically significant plot added below I just want to conf...
I have completed a measurement invariance analysis comparing high-school aged boys to high-school aged girls on a measure of depression. The results suggest that scores are not (scalar) invariant; girls tend to report more severe depression symptoms than their "actual" depression level would indicate. Moreover, the res...
I am working with a binary classifier that is outputting scores between 0 and 1, indicating probabilities of class membership, according to the model. I produced a P-R curve and the first point (i.e., threshold=1) is (0.49, 0.62), shown in the figure below. I am unsure about how to compute the AUC for this curve. Acco...
I am facing an error. The $M_2$ function is throwing an error when I have three items in a test. How can I resolve this?
Let $\tilde{x}$ and $\tilde{y}$ be random variables with pdfs $f_x(x)$ and $f_y(y)$ and cdfs $F_x(x)$ and $F_y(y)$. Given that $E[\tilde{x}] \geq E[\tilde{y}]$ $F_y(c) \geq F_x(c)$ for all $c \in \mathbb{R}$ How can I show that $$E[\tilde{x}1_{\tilde{x} < c}]F_y(c) \geq E[\tilde{y}1_{\tilde{y} < c}]F_x(c) $$ for all ...
My apology if there already are similar questions. On statistical hypothesis testing; When you design the test for the estimate of binomially-distributed population's mean and are determining the power, is it possible to calculate the power under the assumption that the test statistic Z_0's variance is 1? My textbook s...
I'm trying to conduct a moderated multilevel mediation model in R, but I'm still a pretty junior graduate student and I've only ever done mediation with lavaan. My outcome variable is cortisol, for which I have two days' of cortisol data for each participant and five samples within each day (i.e., three levels necessar...
I am using GAMs to model the relationship between a binary response variable (0 or 1) and several continuous fixed and random explanatory variables. It seems that a binomial distribution is the standard choice, but the data are quite sparse, there are 21,000 0's and only about 800 1's. I'm curious if there are any othe...
In performing 43 test on two groups of individuals (independent t-test) I obtained 27 significant results, then adjusting the pvalues with BH procedure for controlling FDR I obtained the so-called q-values. There are 14 variables which have a q-value less than .05. I understand that a q-value might be described as the ...
Suppose we're using linear predictors. I'm trying to conceptually understand how minimizing hinge loss and 0-1 loss aren't necessarily the same. For instance I was told that one can choose a set of points such that the minimum possible 0-1 loss over all of these linear predictors (i.e $p_w(x) = \langle w, x \rangle$) w...
I have two variables represented as a time-series with monthly observations. I am attempting to create a scoring system -1 to 1 where: 1 represents a strong shift in trend from B to A and -1 represents a strong shift in trend from A to B. Ultimately, I am looking to score the magnitude of trend change / momentum from A...
I'm reading Machine Learning - A First Course for Engineers and Scientists. On page 168 they give a rough explanation for why bagging works. I'm a little confused by their explanation. They consider an ensemble of $B$ bootstrapped datasets $\mathcal{T}^{(b)}$ with $b=1,2, \ldots, B$. They denote the prediction from the...
I have three endogenous variables each measured using 5-point likert scale ranging from Strongly Agree to Strongly Disagree. I want to use SEM for my analysis using Lavaan. All the examples I have come across so far in the tutorials have used only 1 categorical endogeneous variable. Therefore, I would like to know if i...
We have a set of models that were derived using some fitting routine that optimizes parameter values utilizing $\chi^2$ for a given model. model1 has 100 parameters, model2 has 99 parameters, ... model10 has 10 parameters.. All of the parameters are estimated using regression techniques but for different model structur...
I am new to generalised linear models and want to use them for my fourth year dissertation project in ecology. Please forgive any ignorance on my part, I have done my best to research this on my own but have reached a bit of a dead end and would like some help. I have an explanatory variable and four predictors for the...
I'm trying to conduct an analysis for my organisation of a change in the our complaints processing system with regards to whether it has had any adverse impact relating to a couple of demographic variables (mainly gender and ethnicity as there is a lot of data missing for other variables). In 2019 we went from one syst...
So. I am doing Time Series Classification on various datasets using different types of classifiers (deep learning, dictionary-based, distance-based, interval-based, feature-based, convolution). As far as I know, k-fold is not a good option for time series, so I've switched to TimeSeriesSplit. However, overfitting is no...
When working with sample size equations, one uses the Z coefficients Z$\alpha$ and Z$\beta$ which are the Z-coefficient for Type I and Type II error rates. These coefficients are from the standard normal distribution. Does it matter if the data you're working with aren't normally distributed? Specifically, I'm working ...
Suppose we have a time interval $t \in [0, T]$ in which events occur as a Poisson process with some arbitrary time-dependent rate $\lambda(t)$. These events occur at times $Y=(Y_1, Y_2, \dotso, Y_M)$ for $M$ events, where $Y$ and $M$ are both random variables, and $0 \leq Y_i \leq T$. $T$ is fixed. The objective is to ...
I have samples from two random variables, and I'm assuming normal distribution with equal variance. I want to show that the distributions have equal means $\mu_1$ and $\mu_2$. The usual two-tailed t-test is used with the inverse situation. That is, one constructs the following and hopes for a resulting $p$ small enou...
I have probably a very simple question, but I did not find any clear resource on the web. First let's consider the Skip-gram model, in which we try to predict a context word given the target word. In this case, the input layer is a one-hot-vector of size N (size of the vocabulary); the output layer, is made up of k di...
I'm running a moderated moderation model (model 3 of PROCESS macro for SPSS) in order to explore a three-way interaction, with one independent variable, one dependent variable, and two moderators. I'm having trouble with the output, as the dependent variable is represented by a 1-7 scale, however, the data produced for...
I was wondering if it is possible to run a second-order latent growth model, where latent classes can be added as a covariate? I have three variables of which I have 7 repeated measures, say, variable A, B, and C. Would it be possible to run a latent class analysis with variable A and B and make that a TIC or TVC in a ...
I'm starting to learn about Bayesian statistics for my own personal education (this is not a homework question). Something puzzles me a bit about the interpretation of credible intervals. From the few things I've read so far, it seems that their interpretation goes along the lines of (e.g. for a 95% credible interval):...
Here is my problem: We have $\mathbf{D} \in \Re^{m n}$, $\mathbf{W} \in \Re^{m q}$, and $\mathbf{X} \in \Re^{q n}$. Furthermore, $\mathbf{D} = \mathbf{W}\mathbf{X}$. (NOT an element wise multiplication - a normal matrix-matrix multiply). I am trying to derive the derivative of $f(\mathbf{D})$, w.r.t $\mathbf{W}$, and t...
I am reading Hayashi's Econometrics book, and on pages 104 and 105 he defines the ARCH(1) model for a time series $g_i$ as: \begin{aligned} g_i &= \sqrt{h_i} \varepsilon_i, \\ h_i &= \zeta + \alpha g_{i-1}^2, \\ \varepsilon_i &\sim iid(0,1). \end{aligned} He then says that $g_i$ depends on $g_1$ and the shocks $(\varep...
I have conducted an analysis on a time series dataset, and the issue is that the 'manual' ARIMA (SARIMA) performed in Gretl gives me a model (3,0,1)(1,1,1) with all *** and AIC=1595.332. However, when analyzing the same dataset with R, it suggests that the best model is (1,1,0)(1,0,0) with AIC=1602.51. When I input the...
I would like to sample 6 quantities that are guaranteed to add up to 600, each with a mean of 100. I want to be control the amount of variance around 100 (same variance for all 6 quantities, but need ability to crank up/down), so the multinomial distribution won't do (can only specify probability). I can kind of do so ...
I am confused about the criteria which determines whether a model is linear or not. As far as I understand, the following statements are equivalent : A model is linear Output class label is a linear combination of model parameters w Decision boundary is linear [a hyperplane] If the above understanding is correct, the...
Suppose we have continuous-time distributions with densities $f_0(x)$ and $f_1(x)$ under the null and alternative hypotheses, respectively. Show that if the level of the test is $\alpha=0$ then $\phi(x)=\{f_0(x)=0\}$ is the most powerful test. My attempt: Suppose there exists a test $\phi^*(x)$ with the same level $\al...
I have a line equation log(y) = mlog(x) + log(c) for which I have plotted log(x) vs log(y) scatter plot using the given x and y values then performed linear regression to get best fit line. Using which I have calculated m and c values. But I need standard error of c such that I can write in form of c +- {delta}c. How s...
I would like to use propensity score matching to construct a post hoc control group to accompany a pre-determined treatment group. Some literature I am seeing says that I should pairwise match sample points from the treatment group to the control group. However I think this runs into two problems: You could have (perh...
Consider an example with two strata for n=300. Suppose the optimum allocation requires sample sizes of 200 and 100 in the two strata. The approximate sample sizes actually used are 180 and 120, respectively. Work out the actual increase in variance (not percentage). I tried solving this but wont we need Sh = Std Deviat...
I have a panel data with daily crime rates over seven years. In my regression I control for year, month-of-year, and day-of-week fixed effects (as well as county fixed effects). However, the residuals (collapsed (mean) at start date level) still show seasonal patterns (see figure below). The huge outliers at every firs...
I would like to do a meta-analysis of the regression coefficients from a group of 9 studies, but they authors had not reported the SEs. For all of the studies, the tables included in the reports only have coefficients with significance stars based on p-values. Would it be possible to back-calculate (or at least estimat...
I estimated the variance of Bitcoin in several ways using the var command in R, and within a GARCH model. I get series that look a bit similar, but the y-axis gives different results. Is this normal? Here, the variance is estimated within a GARCH model (in red) and as the realized variance (in black), i.e the sum of p...
Say I take a bunch of measurements of a discrete random variable in {0, 1} (coin flips of a weighted coin for instance). I understand that a reasonable way to report on the mean and credible interval is to introduce a uniform beta distribution as a prior and treat each coin flip as a bayesian update. The resulting expe...
I want to understand the correlation between a set of $\color{red}{\textrm{inputs}}$ and a set of $\color{blue}{\textrm{outputs}}$ deriving from numerical simulations, and possibly reduce dimensions of my problem. A number of simulation samples $n$ was ran by randomly selecting inputs within given intervals using the L...
In a multi-label classification problem there a duplicates in the training data that are labelled differently. For example, feature x is the same for both rows, while the corresponding labels y differ. df = pd.DataFrame({'x': ['text', 'text'], 'y': [[0, 1], [0, 2]]}) Neither of these is necessaril...
I have a set of data points that represent the cardiac function of an animal's heart every quarter of a second, over a certain period. The data points were subjected to ZhangFit for baseline correction. Here, you can find the overlapping baseline-corrected and uncorrected graph. I would like to check whether these two ...
In econometrics, it is common to work with the difference-in-differences of conditional means. For example, let $Y$ denote a variable of interest and $X_{1}$ and $X_{2}$ denote binary regressors. The difference-in-differences is given by $\mathbb{E}\left ( Y|X_{1}=1,X_{2}=1 \right )-\mathbb{E}\left ( Y|X_{1}=0,X_{2}=1 ...
I am struggling to decide which reference category I should define in my logistic regression model. When I define "mandatory school" as a reference in the variable education the results seem different compared to when I define "High school" (the significance disappears). Anova test (likelihood ratio test) of models wi...
I have a cross-correlation matrix of some parameter for each time period. E.g. expected economy growth for each months in the future, i.e. growth for Apr 2014, May 2014, ...., Dec 2018, and correlation(Apr 2014, Aug 2015) etc. From history I can obtain empirical this correlation table. It will have seasonal periodicity...
Further to my previous post , it seems that one can/should use a logistic regression to model a proportion. How do I interpret the coefficients of a logistic regression when the outcome variable is a proportion and not binary? Is it the same interpretation as if the outcome variable was binary? Using the example below ...
Exactly as in the title. If I estimate marginal trends for a logistic model, are these expressed as a log odds ratio? How does one express that in a way that makes intuitive sense? Change in odds ratio per time unit is a bit awkward.
as Ben Bolker suggested here I should ask this question in this forum! I am trying to fit a GLVM similar to the one presented in this vignette: https://cran.r-project.org/web/packages/glmmTMB/vignettes/covstruct.html#reduced-rank as I was suggested to do this by a statistician. The data I have is area under the curve f...
I obtain insights into calculating the conditional mean and variance of Y given X, denoted as E(Y|X) and Var(Y|X) respectively. Building upon this knowledge, I want to answer the follow-up question using the same joint probability distribution f(x, y): I want to answer the question which I did by using R but Im not su...
Consider a uniform probability distribution on a circle of radius r, i.e. $\{(x,y) \in \mathbb{R}^2: x^2 + y^2 = r^2 \}$.If we wish to project onto the x-axis, we can consider each point on the circle to contribute $\delta(x-rcos(\theta))$. Then averaging over all possible values of $\theta$ yields the following distri...
I am comparing (between countries) how housing conditions mediate the relationship between working conditions and health. Variables are: Work (Exposure = E), living conditions (Mediator = M) and health (Outcome = O). The problem comes with the working condition indicator. In this case, I use the temporality of work (h...
I'm trying to determine the "special" population out of n populations. I have measurements with n labels. label measurement a 1.4 b 1.2 a 1.2 c 1.3 ... Measurements with n-1 of the labels are drawn iid from the same normal distribution with mean $\mu_{defa...
I would like to ask about the methodology of LSH algorithm with Word Embeddings and Cosine Similarity to identify similar documents. First, I tokenize my sentences to create a list of tokens. Then, I apply a pre-trained GloVe model to generate embeddings per token. If one sentence has 5 words, then I will have 5 *(1,30...
I have a dataset with count data (y variable), one primary variable of interest (factor denoted x_1), and several variables I wish to control for (factor and numeric denoted x_i). Say, y is the number of seats taken in a stadium. And let's say that this stadium has three levels of seating - low price (many), medium pri...
Let $x_1=2, x_2 = 1, x_3 = \sqrt5, x_4 = \sqrt2$ be the observed values of a random sample of size 4 from a uniform distribution $U(-\theta, \theta)$ where $\theta>0$. Then the method of moments estimate of $\theta$ is? a) 1 b) 2 c) 3 d) 4 The way I approached this question is: The first method of moment is $\bar{X}$ =...
I am using method = “exact” from the MatchIt package. In the vignette of MatchIt, it is advised to run treatment-covariate interactions to account for treatment heterogeneity across covariates. I have two questions in this regard: I assume this is also advised for exact matching and not only when balance is not perfec...
If I had millions of MCMC samples from a posterior, should the most frequent value among those samples (i.e., the peak of a histogram of those samples) at least in principle always equal the maximum-a-posteriori (MAP) estimate obtained through optimization? In other words, are mode-of-samples and maximum-a-posteriori t...
I'm a second year undergrad university statistics student working on a real life project for IDB, a bank in Latin America. However the project is really above my level, and I could do with some help. As the title suggests, I need to determine the default correlation coefficient value between any two companies in Latin ...
Some of the smooths in my generalized additive mixed model (GAMM) indicate in mgcv::k.check(m) they want to be more wiggly, but I don't think I have enough data to capture the full complexity of the trend. I know we're supposed to increase the basis dimension if k.check indicates it's too small, but I think a smoother ...
I have a question regarding a point process model I generated for a biological point pattern exhibiting repulsion and attraction at different scales. My goal for this model was to generate simulated point patterns that I could then use for between group hypothesis testing, with simulated patterns from other groups. I'v...
I have seen in different Bayesian papers that a common trick to rewrite a Laplace distribution is to use the fact that the distribution can be expressed as a mixture of an exponential and a Gaussian distribution. While this result is used in the Bayesian Lasso paper (https://people.eecs.berkeley.edu/~jordan/courses/260...
I want to know whether there is an efficient way of sampling from this special kind of Bayesian networks of the following form (like thousands or millions of variables in principle). Here is a picture of a simple example: All variables are discrete, networks always have a fixed height (just four in this case), and the...
I am trying to optimize an objective function $L(\theta)$ in which some parameters that I aim to recover belong to a covariance matrix, $\Sigma$. $\Sigma$ has a unique structure, which includes ones on the diagonals: $$ \Sigma = \begin{pmatrix} 1 & & \\ \sigma_{21} & 1 & \\ \sigma_{31} &...
I'm trying to understand the Metropolis Hastings algorithm in depth by solving some exercise problems. On one of them, I'm asked to use MH to generate samples from $$f(x) = c \frac{1}{\theta}e^{-\frac{x}{\theta}}, \quad x>2, \ \theta > 0$$ This deviates a bit from the other problems that I've come across and specifical...
I am working with a dataset where I suspect there is significant noise in both the dependent variable ($y_t^*$) and the independent variable ($x_t^*$). I am considering using moving averages to denoise the data before performing ordinary least squares (OLS) regression. I would appreciate insights into whether this appr...
I've performed an univariate binomial regression with OR (95% CI) and I obtain this result: > full.model <- glm(Re_OUT ~ t0_FIO1 , data = db,family=binomial()) > logistic.display(full.model) Logistic regression predicting Re_OUT : 1 vs 0 OR(95%CI) P(Wald's test) P(LR-test) t0_FIO1 (cont...
I've to calculate the sample size for a superiority trial. I've found many online calculator, but each one gives a different result and I don't understand why. For istance, this one: https://riskcalc.org/samplesize/ -> Superiority Trial -> dichotomous outcome -> proportion: I don't understand the difference between the...
Say I have an enormous set of N-character-long strings. Far too many to enumerate or store in memory, but far fewer than the theoretical $26^N$ possible strings. I can draw samples from this set, but it's slightly computationally expensive: I can probably get thousands of samples, but not millions. I'm looking to get a...
I am trying to analyze the effect of receiving "elite" status on a university's number of international first-year students. I have a perfectly balanced panel of 17 universities over an 18-year time period. It consists of universities who received and retained the elite status, some universities who received and lost t...
Bias, in machine learning, is mathematically defined as $f-E(\hat{f})$, where $f$ is the true model and $\hat{f}$ is the estimate. I was wondering how we can compute theoretically $E(\hat{f})$, given some data points $\{ (x_i,y_i)\}$. For a simple start, we can let $\hat{f} = w_0 + w_1x$ (for a single feature input $x$...
Theorem 3.5.1 of Statistical Inference, second edition, by Casella and Berger, says the following: Theorem 3.5.1 Let $f(x)$ be any pdf and let $\mu$ and $\sigma > 0$ be any given constants. Then the function $$g(x \mid \mu, \sigma) = \dfrac{1}{\sigma} f\left( \dfrac{x - \mu}{\sigma} \right)$$ is a pdf. Proof: To verif...
I posted these questions on the (negative) impact of Censoring in Survival Analysis; Why is large amounts of censoring bad in survival analysis? How does Censoring in Survival Analysis impact Confidence Intervals? I now have a more specific question - are all types of censoring (e.g. Left, Right, Interval) equally ba...
Working on Validations of a machining process and trying to understand how to show capability of a machining process that is measured using "profile of a line". This is measured by a probe measuring how well a profile meets the theoretical line by checking at several intervals and then returns 2 measurements (Max and M...
In a classification task, at a certain stage of the training process, we get a likelihood of sampling proper class Y for a particular data point X. For batch, we get many independent likelihoods. Let's say we have likelihoods l1, l2, l3. l1 is a likelihood of sampling "fun" given a sequence "Data Science is", with curr...
This question might look very trivial, but PCA is still nebulous to me. If I have a set of individuals described by 10 variables: $A, B, C, D, E, F, G, H, I, J$, all quantitative and having the same unit (let's say: Euro), If I choose to only center them, and ask my PCA to find two components, and that it creates two a...
Suppose I run a poisson regression with yearly death count as outcome: $\log \mu_{t}=a + \beta_{ti} \kappa_{ti} + offset$ $\mu_{t}$ refers to the number of death at time $t$; $a$ refers to intercept; $\kappa_t$ refers to age-group $i$ at time $t$. Noted that I have stratified the age into several groups, i.e. 0-4;5-9;1...
Of course the numbers will be different, I mean more in terms of relationship. I know that X affect R and Y affects R . X and Y are independent but since R is a product of X and Y , I dont think that I can calculate Y just by dividing R estimate by X estimate ? I dont know why, but it feels like a wrong approach . Can ...
Say I want to measure whether a set of business rules is better than random at identifying customers most likely to respond to an email. The steps are: Take the entire population of 200 people and randomly split into two groups of 100. From the first 100, randomly find 50 people. This is Group A. From the second 100, ...
I have a question regarding the model reparametrization of an ARDL model. Consider the following ARDL$(p,q,q,\ldots,q)$ model: \begin{equation} y_{it} = \alpha_i + \sum_{j=1}^{p} \lambda_{ij} y_{i,t-j} + \sum_{j=0}^{q} \delta'_{ij} x_{i,t-j} + \nu_{it} \end{equation} where $\alpha_i,\lambda_{ij}$ , $y_{i,t-j}$, and $\n...
I have a longitudinal data with exposure air pollution and outcome cardiovascular disease. The inclusion starts from 2010 to 2017 and then I followed until 2021. I have measurement of pollution from 1989 to 2021 as continues measures. I use a cox regression, pollution as time-varying covariate and I have left truncatio...
Currently, I'm fitting a regression model for my dataset. As there are clusters, I refitted the model using the coeftest() function from the sandwich package. And finally, I want to check the usual model assumptions. Which model will I use to check the assumptions (model with adjusted or unadjusted standard error)? As ...
In my work I mostly use latent variable modeling, but due to a recent project, I now have to also use a multilevel model. I have a situation where latent constructs of geography knowledge (measured with 20 test items) and learning motivation (measured with 10 questionnaire items) are measured for every pupil. Pupils ar...