instruction
stringlengths
9
38.7k
I have encountered a problem which involves finding the probability that an observation of a random variable has a greater absolute value than the sample mean of an independent set of observations of the same random variable. Anyone have any idea how to proceed? Ideally, I am looking for some general properties of this...
The variance of the coefficients from a multiple linear regression are: $$ Var(\beta_k|X) = \sigma^2(X'X)^{-1} $$ The single linear regression formula seems fairly intuitive with the denominator being the sum of squares for the independent variable, but I don't understand how the independent variables influence the var...
I am building a Bayesian neural network with Poisson likelihood and 50 features for time series prediction. Parameters of the model are learned using variational inference. I am trying to see whether adding a new feature will improve the model. For this, my first thought was to perform likelihood ratio test since this ...
I have been reading about the Entropic Value-at-Risk measure and its applications. The definition of this risk measure is as follows [1,2]: $${\displaystyle {\text{EVaR}}_{1-\alpha }(X):=\inf _{z>0}\left\{z^{-1}\ln \left({\frac {M_{X}(z)}{\alpha }}\right)\right\}.}$$ Where $M_{X}(z)$ is the moment-generating function a...
Dear statisticians' community, I am trying to compute a Latent Class Analysis through Stata and/or R. I built a 5 classes LCA model using poLCA on R and added a set of covariates. It seems from the literature, like Vermunt (2010), that the use of 'One step approach' has some limits, but it's not possible to implement t...
Ok, first off I've used this same data set to create different plots and had no issues. The problem I'm having now is trying to get the causal impact package to plot my data as decreasing, but instead, it's showing an increasing trend, which is incorrect. First I loaded my packages. ## Packages library(lubridate) libr...
I am implementing an ARIMA model on a time series data. I have confirmed that the data is stationary with the adfuller test. I plotted my ACF and PACF graph as below with a lag of 40. Here, I see the PACF plot for AR order and the p value looks like 8. I see the ACF graph for the order of the MA model and the q value ...
My question is quite basic, I have posterior distributions for some parameters derived from an arbitrary Bayesian framework. Since I know that the posterior variance under-estimates the true variance, what types of correction are available in order to have better inferences ? I more interested in general methods/framew...
Papers I have read about p splines in multiple dimensions use some variation of the following idea. The spline is a surface $u(x_1, x_2)$ that that minimizes the objective function $\sum w(u - u')^2 + \lambda_{x_1}\sum(D_{x_1} u)^2 + \lambda_{x_2}\sum(D_{x_2} u)^2$. Where $D_{x_1}$ and $D_{x_2}$ are the difference matr...
I am refreshing myself on the different types of regression models and am getting a little stuck between logistic regression and Cox regression/survival analysis. Here's an example: Let's say you are evaluating an intervention. You have two groups - an intervention group and a control group. You have follow-up data on ...
We have 2,000 participants. We have been collecting routine samples from them over the last 3 years (and continue to do so). The "perfect" participant has submitted 5 samples so far. Each time a sample comes in, we test to see if they are a carrier of a specific bacteria. Being a carrier is transient - at one point in ...
Suppose I know that $ A = 0.3 \cdot B + 0.7 \cdot C $ And I have these estimates: $$ \hat A = A + \varepsilon $$ $$ \hat B = B + \zeta $$ $$ \hat C = C + \eta $$ For the sake of the argument, $ \varepsilon \space \zeta$ and $\eta$ are non-correlated white noise. I could have some estimate on their variance. What's a ...
I am trying to show my hypothesis "H1: values in array a are less than in array b" Therefore, I understand that I need to reject "H0: values in array a are greater than or equal than in array b" The optional parameter 'alternative' let's me conduct a one-tailed test. However, I can only enter 'less' or 'greater' which ...
As a very beginner user, I have the following questions during my testing: 1. What are the suitable variables in the dataset for each of the components on the right side of the below tree formula? response ~ node-specific predictors | global predictors | partitioning variables (cited from: https://doi.org/10.1080/10...
I have seen a lot of different advice on how to deal with imbalance, and I get that it can be case-specific. But I learned in school that SMOTE oversampling or undersampling were basically the ways to fix this, and now in the real world these methods seem to be introducing a lot of problems with bias and uninterpretab...
I am relatively new to zero-inflated ordered probit models, and I've observed a pattern in the analysis of discrete data. In the research papers I've come across, many discrete variables are grouped into a binary format. For instance, variables are encoded as '1' to denote high salary and '0' otherwise, or as '1' to si...
I was using GVLMA from R and this doc: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2820257/ But then I notice something weird with some models, working with the set of data, some tests of Y(X) can pass, but using X(Y) will not.... Well, is like a basic thing but if a set of data is generated by: y = a*x + b + some_dis...
I am engaged in algorithmic trading, employing specialized models that utilize various parameters to signal trading opportunities. Once I get a signal, I could execute a trade and everything is determine in advance, i.e. I know the entry point, the exit point and I have a stop loss if the price goes against me. While t...
Consider a regression model: \begin{align*} y = f({\bf x}; {\bf b}) + e\tag{1} \end{align*} where $y$ is the objective variable, $\bf x$ is the explanatory variable(s), $\bf{b}$ is the model coefficient(s), and $e$ is the error term. In the "simplest" least-squares fitting of the model to the observation data $({\bf x}...
On a number of occassions, I have seen people remark that you should always interact your covariates with the with your slope when running multilevel models. That is, for example, you should not run the following code: lme(fixed=y ~ treat + time + x1 + x2 + x3, random = ~time|ID, data=data) Rather, you should always r...
I know that in the proportional hazard model, Breslow estimator is used for estimating baseline cumulative hazard. But what about when the data has some(or many) ties?
I evaluated the effectiveness of an intervention by using lme4 package with the variables group (intervention=1, control=2=reference group), time (pre-intervention=1=reference group, post-intervention=2) lmer(Depression ~time *group +(1|id)) resulting in a significant interaction (time * group). In a second step, I ex...
I am running the following regression:  reg stdnutrition stdlogdeficit stdinfrastructure c.stdlogdeficit#c.stdinfrastructure where all variables are standardised.   I want to determine the minimum and maximum values of "stdinfrastructure" at which the marginal effect of "stdlogdeficit" on "stdnutrition" is significant...
I'd like to calculate the confidence interval of the mean difference. I know that you could potentially use the t.test function in R for this but I can't use the original data, of which the means have been calculated. Therefore I've only got the means and their standard error and confidence interval and not enough obse...
So given that the coefficients of a ridge regression with a squared L2 norm penalty corresponds to the maximum a posteriori (MAP) estimate of a Bayesian regression with Gaussian priors on the coefficients and LASSO regression coefficients with L1 norm penalty to the MAP estimate of a Bayesian regression with Laplace pr...
I'm interested in making more use of tidymodels' infer package, which lets one perform a variety of statistical tests by a simple algorithm. Here's an example pipeline for an F-test, where we aim to compare yields (as measured by dried weight of plants) obtained under a control and two different treatment conditions. l...
I am an aspiring data scientist and I have tried understanding hypothesis testing for A/B testing (split testing) for a while and i have gone through countless videos on Youtube (since I am a visual learner) to get this understanding." I know how it works when it comes to one sample hypothesis testing, but I can't real...
I have two time series, lets say X and Y with 127 and 64 observations in each respectively. I have applied DTW with global constraint to get the distance and then further used that distance to calculate another coefficient. Now I want to calculate DTW using rolling window for the timeseries using one year period for DT...
I am fitting a GAMM model to understand the evolution of fire elevation in time. I am using the mgcv package from R. My dataset contains 820 fires events with its corresponding elevation, time of occurrence (year) and the region it belongs to. For the model, I set the elevation of fires as the response variable, time a...
I am running some OLS regression on correlated IV's. I use Gram-Schmidt orthogonalization to transform to a new set of uncorrelated (orthogonal) variables. I then check for the importance of each IV using a t-test and associated p-value for each regression coefficient. The p-values/significance I get for my regression ...
Conceptually I am interested in a pretty simple question: Do screening rates (dichotomous outcome) differ between an intervention and control group. We have a number of clinics that patients are drawn from so I ran a GEE to account for this. We are really interested in percentage differences between the two groups when...
I'm using the IBM provided PSM module in SPSS 26 on MacOS. I have 1 group indicator and 4 covariates (3 scalar-1 nominal). I tried match tolerances of 0.5 and 1. I tried with and without replacement and with and without the performance toggle in the same menu (can't remember the exact name right now) After these adjust...
For a long time, I have been looking for a reference that could give me an intuition for designing DNN models, however, I have met with little success. I have a set of training data, I know how input and output layers should look like, but what should I add in the middle? Yes, everyone knows that RNNs are proper choice...
Suppose that we generate some dataset from $y = X \beta + \epsilon,$ where $\epsilon$ is some independent error, and the rows of $X$ come from some distribution (unspecified for now). Suppose you run a PCA on a dataset $X$, resulting in $A$. Can you characterize the bias you get from using $A$ instead of $X$, maybe in ...
I have a dataset I made using Anderson-Gill counting process template. i.e each person appears in $N+1$ rows where $N$ is the number of events they had. $N$ rows for the $N$ events and 1 row for the censor time from last event time. Entrance and exit times are measured in days. Event=1 indicates the event occurred. My...
Suppose we have the following data from the R package afex: library(afex) dd <- obk.long[obk.long$phase=='fup' & obk.long$hour=='1', c('id', 'treatment', 'gender', 'value')] str(dd) Basically, the dataset dd contains two between-individual factors treatment and gender: $ id : Factor w/ 16 levels "1","2","3","4"...
I am using a mixed model meta analysis, for combining several studies, more specifically doing a linear model adjusting for covariates within each study, and then pooling the estimated effect size, to have more statistical power. I have been looking into the paper behind the method I will use for the meta analysis: htt...
I'm using SPSS. I have a multi-level categorical IV and a few continuous DV's. My main analysis goals are to test the effect of the IV on the DV, and then to follow-up with pairwise comparisons of level 1 of the IV to each of the other levels. However, Levene's test for homogeneity of variance is significant for all of...
I'm working on an online model scoring framework, my goal is to be able to understand if my model's predictive performance is degrading week-over-week. I have a classification model (trained on binary target data) which produces probabilities, and I am most interested in assessing the accuracy of those probabilities. F...
A neuron in a NN is typically defined as: $$y = f \left ( w \cdot x + b \right )$$ If I have 100 weights (such as $w = [1,1,..., 1]$) and 100 inputs (such as $x = [1,1,...1]$), is the maximum value of my dot-product, $w \cdot x$, 100 or 1? That is, are my inputs and weights normalized?
Goal: Represent nested models with SKLearn's Pipeline / ColumnTransformer / FeatureUnion setup. Specific issue: I cannot figure out how to use the prediction from one model as a factor of a secondary model. Example of what I don't know how to do: Let $W_1, W_2, X_1, X_2$ be features. Let $Y$ represent the target varia...
It is generally observed that financial times series is not normally distributed. So I want to clear the following doubts: Is it necessary to normalize time series data especially before proceeding with models such as GARCH? If the time series is stationary is it still necessary to normalize it? How to normalize it?
When choosing the optimal alpha for cost complexity pruning in a single decision tree, we can directly look at the subset of effective alphas. However, in the context of random forests, there isn't an easy way to define what the effective alphas should be. Although in random forests such a pruning is not as necessary a...
I am currently writing my master's thesis and am doing a logistic regression with the following glm formula in R: brandrecall_logistic <- glm(unaided_recall ~ frequency + dynamic_ad + dummy_branded + prerecorded_ad + host_credibility + frequency:dynamic_ad + frequency:brandedcontent_ad + frequency:prerec...
I am unsure whether my current choices of statistical tests are correct for what I am trying to explore. I am looking at whether there is a relationship between unhealthy eating behaviors and task-unrelated thoughts as my research question. I am also examining whether different social contexts affect that relationship ...
I have two main questions: 1) Is there a way to calculate IRR when the range of scores differ between observers? If not, how do you get IRR without excluding data? I am calculating inter-observer reliability (IRR) for 2 observers who will be collecting data during a study. When I run the IRR in SAS, the Kappa statistic...
Say we have 100 samples, and a first draw results in samples S1,...,S10 being drawn (S1-S10 being distinct samples, as the sampling is without replacement). Now if I put all samples back and draw 10 samples for a second time, how many of the previously drawn samples S1,..,S10 to I expect to draw again? I understand tha...
I have a dataset with a set of individuals indexed by $i = \{ 1, ..., N \}$, and I make a number of measuremenets under two conditions for each individual to measure the effect $\beta$ of my manipulation. I am fitting a mixture model to the dataset, where I have two populations of individuals, a population 1 of individ...
I understand that quantile regression estimates the conditional quantile of some measured variable (call the variable $y$), but can you use quantile regression to estimate an unconditional quantile of a distribution? For example, if I had 100 data points $$y_1,...,y_{100}\sim N(\mu, \sigma^2)$$ then I could use some me...
My time series look like this, but it passed the ADF test. Does it make any sense?
I am working on logistic regression to identify the most cucial genes that can predict the response of stimuli. I have a workflow that looks fine to me but I want inputs from the people who have more experience on similar problems. I have a data set that looks like below: Resp CDK6 EGFR KIF2C CDC20 Sample...
I would like to ask for your help regarding my data. I would like to know how best to model it and what analysis I should use. The mesocosm experiment was conducted in a full factorial design. We had 2 levels per variable (stressors). My table looks somewhat like this: mesocosm taxa abundance stressor...
Running from statsmodels.tsa.statespace.sarimax import SARIMAX model = SARIMAX([1,2,3,4,5,6,7,8,9,10], order=(0,0,1)).fit(disp=False) print(model.summary()) print(model.predict()) yields SARIMAX Results ====================================================...
Let say that I have a 1D experimental dataset $y(x)$, which contains noise due to experimental error. Is it possible to estimate the data by assuming that the errors are normally distributed? (The true shape of the data is unknown otherwise this is reduced to a fitting problem) The scipy gaussian filter (https://docs.s...
Is anyone familiar with publicly accessible image datasets that include Inter-annotator agreement (IAA) scores? Ideally for object detection or classification tasks. Thank you!
I have a 2 x 2 repeated measures ANOVA (N = 51) with Error Rate data as the dependent measure. The error data violates the normality assumption, even when outliers are removed. I have looked at the square root and sin transformations but the assumption is still violated with these. I used the shaprio test and viewed th...
Let's say we are performing simple linear regression of $y =b_1x + b_0$. Assume we estimate $b_1 = c$, we can use $c = 2$ for this example. When we consider the flipped regression of $x =b_1'y + b_0'$ can we establish any upper or lower bound on $b_1'$? Other than it being greater than 0?? This is the only thing I can ...
I am running a regression analysis of the U.S. (specifically, the population represented in the U.S. Congress by voting members, so census data for the 50 states would constitute population data). One of the predictors comes back with a univariate regression p-value of 0.8+. Also, step-wise addition of other variables ...
My question is whether unique time series has a unique set of ARMA parameters that fit it best, once order of AR and MA have been chosen. For simplicity, I will ask only about ARMA(1,1) process. Lets say I have time series $\{x_t\}_{t=0\dots N-1}$. I can define the lag operator as a matrix: $$ L=\left(\begin{array}\\ 0...
I have two time series $X(t)$, and $Y(t)$, both are i.i.d. I run the following linear regression model: $Y(t) = \alpha + \beta Z(t)$, where $Z(t) = X(t) + X(t-1) + X(t-2)$; The t-statistic of $\beta$ by regressing $Y(.)$ on $Z(.)$ is 2.5. Is this value correct? If not, how do I obtain the correct value? Do you have any...
The way I understand time series models is that you usually have to .fit() them every time you want to make a forecast. This is because there might be trends that were not seen before and so you can't see too much in the future. My question is: is it possible to fit it once to get all the parameters and then just forec...
Does it make sense to use Lasso to find an explanatory variable x to predict my variable y, assuming both y and x are non-stationary? (I'm using both variables as levels, not differences). If I find a high Rsquared, is this a sign that the regression is spurious?
Suppose I have the following random variables $X_1, X_2, Y_1, Y_2$, their support is the natural numbers. $X_1$ and $Y_1$ as well as $X_2$ and $Y_2$ are not independent. I am given that $E(X_1/Y_1 ) \leq b$ and $E(X_2 / Y_2) \leq b$. Is it necessary that also $E\left( (X_1 + X_2) / (Y_1 + Y_2) \right)\leq b$? Is there ...
I have two index tests, Test A and Test B, both of which have been studied in participants. Every participant also underwent the reference standard. I've found that Test A and Test B perform equally well against the reference standard in terms of accuracy, ROC curves, and other measures. I now want to determine if addi...
I have a labelled data set with $n$ data points $(x_i, y_i)$ with $x_i \in \mathbb{R}^k$ and $y_i \in \mathbb{R}$ and I trained a model $f: \mathbb{R}^k \to \mathbb{R} \times \mathbb{R}^+$ on some of the data points using Gaussian maximum likelihood estimation. The model, therefore, outputs a mean estimate $\hat\mu(x)$...
Some people claim that 90% of suicides are committed by people who grew up in single-mother homes – the implication being that that kind of upbringing leads to suicide. I'm not sure one can validly draw that implication. It seems to me they're confusing two different things: the probability that, given that someone was...
Background My training is in statistics, but I'm interested in machine learning. My models involve nonlinear relationships between 2-5 predictors and a single response (all variables continuous). There are clear, direct causal links between each of the predictors and the response, which are well-known - but the interac...
I have conducted a Welch t-test to see if the group means in a school's average progress 8 scores (a measure of education attainment) are different for rural and urban schools. I also have data on the % students in each school who passed their maths GCSE, but I don't have data on the number of students in each school. ...
I have few questions concerning the selection of hyperparameters for predictions in cross validation. If I understand well, during the CV, you just create folds (inner and outer for a nested CV), and then, for each fold, you train your algorithm, and make predictions on the test set, right ? Then, to estimate unbiased ...
Is the statement "Pearson’s r is a measure of goodness of fit to an affine function" literally true? Why or why not?
I'm trying to get along with calculating precision of analytical method. I'm a chemist not a mathematician. ICH M10 guideline requires that: Accuracy and precision should be determined by analysing the QCs within each run (within-run) and in different runs (between-run). Thus, it doesn't define how to do it. In the p...
I have a question regarding the results that I have achieved from my analysis. I'm new to statistics and the understanding of epidemiology. Please, help me interpret this better. I know what a confounder is, but still, I don't know how to understand this. I have a big sample size with equal numbers of each gender. I ha...
I'm working on a dataset with some outliers in the response variable which are actually natural results (not errors). I want to calibrate a model which could then be used to predict on populations outside the training dataset. Therefore, to assess its performance, I split my dataset in training and test splits by a 0....
The Mincer-Zarnowitz test of forecast optimality regresses forecast errors $e_{t+h|t}$ on the forecasts $\hat y_{t+h|t}$, $$ e_{t+h|t} = \gamma_0 + \gamma_1\hat y_{t+h|t} + u_t \tag{1} $$ or in another formulation, realized values $y_{t+h}$ on the forecasts $\hat y_{t+h|t}$, $$ y_{t+h} = \delta_0 + \delta_1\hat y_{t+h|...
I have a bit of an odd problem and would love to get some suggestions of what the cause could be as I am currently at a loss: Some while ago, I had converted a dataset to long format in R using melt and calculated multilevel analyses with this data. Later, it cleaned up my code a bit and renamed some variables, but no ...
I have a ML project for classifying news articles. In my dataset I have a target variable called "category", which represents type of the article, ("IT", "Science & Tech", "News", "Health", etc...) . I'm struggling to find the best approach to encode it. The only relevant post I found is https://towardsdatascience.com/...
How should I compare my logistic regression models? My study is about the association between diabetes (dia), and a genetic variation (GV) I'm adjusting for confounders such as gestational age (GA) and gender (GE). I have these models: the simpel, reduced model dia ~ GV half complex, intermediate model dia ~GV + GA ...
I have two sets of data fit into power law relations y=a*x^b. What test do I do to test whether they are significantly different.
I have some categorical data which is coded 0/1 at the observation (in this case, interest area) level. I have averaged these values per trial, which provides me with a probability value between 0 and 1. I am running GLME's in R using family = Gamma(link = identity) (continuous) and family = binomial(link = logit) with...
I want to solve the following problem. Suppose we have a simple pendulum, which follows the differential equation \begin{equation} \dot{x} = f(x) = [x_2, -\sin(x_1)]^T, \text{with } x=[x_1, x_2]^T. \end{equation} Given an inital state the successor state is calculated via eulers method \begin{equation} x_{k+1} = x_k ...
I possess training data denoted as $D$, a given test input denoted as $x$, and a model that is parameterized by a random variable $\theta$. This model is a neural network containing dropout layers, making it parameterized by the random variable $\theta". My objective is to assess the model's epistemic uncertainty by qu...
Problem Evaluate $$I=\int_{-\infty}^\infty \frac{e^{-\frac{1}{2}\left(\frac{x-\mu)}{\sigma} \right)^2}}{\sigma \sqrt{2 \pi}}\frac{1}{1+e^{-x}}\, \mathrm{d}x$$ My attempt Now the first part of the integrand represents the p.d.f of the normal dist and other other the c.d.f. of the standard logistic. So I wrote it as foll...
I've fitted a GAMM using the mgcv package in R to some time course data from a biological experiment, with multiple drug treatment groups and a vehicle control group. I'm looking to make a comparison of each treatment group to the vehicle control. I have a linear fixed effect of the dummy encoded treatment group factor...
I have plotted the average SAT score of schools on the x-axis and the studentised residuals on the y-axis. The code I used to produce this looks like this: library(MASS) lm.sats <- lm(SATSCR ~ urbanrural) stud_resids <- studres(lm.sats) resid_df <- final_df[!is.na(final_df$SATSCR),] head(stud_resids, 3) plot(resid_df$...
I built a model with 2 variables, i found that the predicted values for the test set did not align with their real values, so i predicted instead with the data which were used to train the model. I had the following results: I don't have a lot of experience in ML, but this shouldn't be like this. The predicted values ...
I'm performing a mediation analysis in R, block-bootstrapping by participant instead of by row since I have multiple observations for each participant. My code looks like this: # Create function to block bootstrap by participant indirectsaved = function(formula2, formula3, dataset, ids) { # Get unique ids uniqu...
I know that Kolmogorov-Smirnov test uses the empirical distribution function of the sample studied $\widehat{F}(X_i) = \frac{i}{n}$ and then measures the adequacy of function $\widehat{F}$ to function $F$. In reliability, it is common to use the median ranks method (also known as Benard's approximation) instead of the ...
There are several common methods for scaling input features to machine learning models prior to training the model. The most popular methods seem to be standardization (centering by the mean and dividing by the standard deviation of the variable) and min-max normalization (centering by the minimum value and dividing b...
I have a repeated measures crossover design where two treatments were delivered to all participants, and measurements of the mediator M and outcome Y were taken following each treatment. I also have a moderator W which moderates the influence of the treatment X on the mediator M. Finally, I have a variable A representi...
I am trying to run the following model in Lavaan, in which AM, RM, and CU are latent variables. It also has three control variables (CV1, CV2, and CV3). I have written the code that is included at the end of the post. I have two doubts: Should I also include the CV when calculating the total effect, and indirect effe...
I am trying to understand the difference between the two modelling approaches described below that stems from the causal graphs. Our goal is to causally measure the total treatment effect of our expenditure of two investment options denoted $X_1, X_2$ on the final outcome sales $Y$. To our help we also have measurement...
Consider discrete random variables $X_1,\cdots, X_n$, and let $D$ be their joint distribution. For each subset $S\subseteq[n]$ let $D_S$ be the marginal distribution $(X_i)_{i\in S}$. Fix $k<n$. Suppose you are given, for every $S$ of size $k$, a distribution $D_S$. Under what conditions do the distributions $\{D_S\}_{...
I am interested in running a multivariate multi-level model with longitudinal data, and I'm having a hard time conceptualising the hierarchy levels. My variables are: Multivariate outcome: Quality of life scores (continuous) with 5 domains (Physical, Psychological, Autonomy, Peer, and School). Individuals are repeated...
Naturally, the above image is a graphical representation of a sigmoid function fit for a logistic regression I'm trying to understand the equivalent of an ordered logit. Below is an image that, to the best of my understanding, is the graphical representation of a fitted proportional odds logit of four categories. are ...
I'm trying to understand the non-parametric bootstrapping to calculate p-values. I understand pearson correlation has it's own method for calculating p-values but I'm just using this as an example. My understanding of the process is the following (for a two-sided test calculating p-value for vectors X and Y): Calcula...
I am conducting a meta-analysis on a series of studies without a control group, with pre-and-‎postoperative data (Mean ± SD). I have calculated the SD of the mean change using the reported p-value ‎for the paired t-test in each study. Now, the problem is that the estimated pre-post correlation gives a ‎value outside th...
This post says: Lagged versions of the dependent variable are a no-no in traditional random effects models. The problem is that they are correlated with the random intercept and produce inconsistent estimates of the regression coefficients. This is known as the initial conditions problem. Is this an inconsistency in ...
I'm trying to work out a linear regression model where both inputs and outputs are multidimensional. Suppose we have $n$ input variables, $m$ output variables and $k$ observations. Each observation can be represented as an $n+m$-vector: $(x_1,...,x_n,y_1,...,y_m)$. The full set of observations can be represented with t...
I have categorical data coded 0/1 at the observation level. I have averaged these values across trials, obtaining a probability value between 0 and 1. I am running GLME's in R using family = Gamma(link = identity) (continuous) and family = binomial(link = logit) within the models, however for the averaged categorical d...
Mixed effects models(MEM) can be nested or crossed. For crossed models specifically, how would the below R code look as a mathematical formula in an academic paper? There are multiple random and fixed effects. M1 = lmer(Y ~ A + B + C + D + E + ( 1| FFF) + (1|GGG), data)) There is plenty of literature on Crossed MEM...