Search found 12 matches

by erikruzek
Tue Feb 02, 2021 8:04 pm
Forum: runmlwin user forum
Topic: Is it possible to constrain the residual variance in MLwiN?
Replies: 5
Views: 1679

Re: Is it possible to constrain the residual variance in MLwiN?

Thanks, Chris and George. George, I am having trouble locating a web example from HLM. My colleague said that that it involves the fixsigma2 command (setting it to 1) and then specifying a "varianceknown" variable. Below is a snippet of code from a HLM syntax file. It looks like something ...
by erikruzek
Tue Feb 02, 2021 12:01 am
Forum: runmlwin user forum
Topic: Is it possible to constrain the residual variance in MLwiN?
Replies: 5
Views: 1679

Re: Is it possible to constrain the residual variance in MLwiN?

Hi George, Thanks so much. In the example you linked, the residual variance was set at a single value (scalar). constraint define 1 [RP1]var(cons) = 0.5 I would like to set the residual variance to a variable in the dataset given that the SEM is unique to each observation in the data. constraint def...
by erikruzek
Mon Feb 01, 2021 10:45 pm
Forum: runmlwin user forum
Topic: Is it possible to constrain the residual variance in MLwiN?
Replies: 5
Views: 1679

Is it possible to constrain the residual variance in MLwiN?

Hi all, I am running a longitudinal model on an outcome that was measured and scored using a 1-PL IRT model (Rasch). For each observation of the outcome, there is an associated standard error of measurement (SEM). Is it possible to fix or constrain the residual variance in a MLwiN model (via runmlwi...
by erikruzek
Thu Dec 03, 2020 2:58 pm
Forum: runmlwin user forum
Topic: Order of Predicted Residuals with Multiple Random Slopes
Replies: 2
Views: 1587

Re: Order of Predicted Residuals with Multiple Random Slopes

Thanks, Chris. That makes sense. I can see why I was confused - I did not mean to exclude the intercept from the fixed part of the model! Had I included it there, then uc0 would have been the random intercept.
by erikruzek
Wed Dec 02, 2020 8:30 pm
Forum: runmlwin user forum
Topic: Order of Predicted Residuals with Multiple Random Slopes
Replies: 2
Views: 1587

Order of Predicted Residuals with Multiple Random Slopes

Hi Chris, George, and everyone, When running a model with multiple random slopes and getting the Empirical Bayes predictions, is there a way to tell how the newly produced residual variables map onto the intercept and slopes? I am running the following model: runmlwin RIT time time2, level3(first_sc...
by erikruzek
Fri Apr 03, 2020 12:33 am
Forum: runmlwin user forum
Topic: Setting up an AR(1) model
Replies: 3
Views: 2053

Re: Setting up an AR(1) model

Got it, Chris. Is it possible to setup a similar model as the Rats example in Chapter 19 with two outcomes like I have here?
by erikruzek
Mon Mar 30, 2020 7:24 pm
Forum: runmlwin user forum
Topic: Setting up an AR(1) model
Replies: 3
Views: 2053

Setting up an AR(1) model

Hi Chris, George, and all, I hope everyone is doing well. I have a question about setting up and running a growth curve model that has the additional wrinkle of allowing for an AR(1) structure to the residuals. I have looked at the MCMC manual, chapter 19, and seen the example with the rats dataset....
by erikruzek
Fri Sep 27, 2019 4:12 pm
Forum: runmlwin user forum
Topic: Number of groups varies between 2- and 3-level multivariate MLM
Replies: 4
Views: 7721

Re: Number of groups varies between 2- and 3-level multivariate MLM

Thanks, Chris. Knowing the CC exists and it is so easily handled in MLwiN, I agree it makes sense to model it correctly. I did so and variance and covariance estimates at each of the levels are quite similar, and as a result, the number of groups being reported is exactly aligned with expectations.
by erikruzek
Thu Sep 26, 2019 9:01 pm
Forum: runmlwin user forum
Topic: Number of groups varies between 2- and 3-level multivariate MLM
Replies: 4
Views: 7721

Re: Number of groups varies between 2- and 3-level multivariate MLM

Thanks, Chris. You identified the problem exactly. I have two teachers who each taught in two different schools. Technically that means teachers and schools are cross-classified. However, with only two of 65 teachers in this situation, I'm curious whether you think it makes sense to model the cross-...
by erikruzek
Wed Sep 25, 2019 9:16 pm
Forum: runmlwin user forum
Topic: Number of groups varies between 2- and 3-level multivariate MLM
Replies: 4
Views: 7721

Number of groups varies between 2- and 3-level multivariate MLM

Hi all, I am running a multivariate MLM that has repeated observations (level 1) of teachers (level 2) within schools (level 3). The data has 550 non-missing observations on the two outcomes for 65 teachers in 23 schools. Variable | Obs Mean Std. Dev. Min Max -----------------+----------------------...