Search found 1131 matches

by ChrisCharlton
Wed Jan 08, 2020 10:14 am
Forum: MLwiN user forum
Topic: Basic question about Multilevel Analysis and MlWiN: Group vs. grand mean centering
Replies: 1
Views: 29

Re: Basic question about Multilevel Analysis and MlWiN: Group vs. grand mean centering

You may find the following explanation from Kelvyn Jones, one of our colleagues, useful as it provide an overview along with some links for further reading:

https://www.researchgate.net/post/MLM_A ... _centering
by ChrisCharlton
Tue Jan 07, 2020 10:58 am
Forum: runmlwin user forum
Topic: VPC in a three level random slopes model
Replies: 1
Views: 27

Re: VPC in a three level random slopes model

See viewtopic.php?f=3&t=815 for a previous discussion on this topic.
by ChrisCharlton
Tue Jan 07, 2020 10:39 am
Forum: runmlwin user forum
Topic: Error: "last estimates not found"
Replies: 1
Views: 22

Re: Error: "last estimates not found"

The lroc command requires estimates from the logistic, logit, probit and ivprobit command, as described in the help for this command (https://www.stata.com/help.cgi?lroc). Unfortunately this means that it cannot use the estimates from the runmlwin command.
by ChrisCharlton
Tue Jan 07, 2020 10:30 am
Forum: runmlwin user forum
Topic: obtaining level 2 residuals from multilevel ordinal model
Replies: 2
Views: 50

Re: obtaining level 2 residuals from multilevel ordinal model

This works for me if I do the equivalent of the following: * Fit model using IGLS MQL1 runmlwin hiv cons, /// level2(group: (cons, contrast(1/2))) /// level1(idcode:) /// discrete(dist(multinomial) link(ologit) denom(cons) basecategory(0)) /// nopause * Fit model using MCMC runmlwin hiv cons, /// le...
by ChrisCharlton
Tue Dec 10, 2019 4:12 pm
Forum: MLwiN user forum
Topic: Recoding new sequence variable from continuous time variable
Replies: 4
Views: 101

Re: Recoding new sequence variable from continuous time variable

Did you set subjid as the variable under "On blocks defined by"? Doing this should restart the sequence back to one each time the value in this column changes.
by ChrisCharlton
Tue Dec 10, 2019 3:33 pm
Forum: MLwiN user forum
Topic: Recoding new sequence variable from continuous time variable
Replies: 4
Views: 101

Re: Recoding new sequence variable from continuous time variable

I think that the following may do what you want: Sort your data by visdy within subjid . You can do this either via the Data Manipulation->Sort menu or via the SORT command. Note that this will only reorder the selected columns, so you need to include all the columns representing your data here. Gen...
by ChrisCharlton
Fri Dec 06, 2019 10:49 am
Forum: MLwiN user forum
Topic: multinomial logistic regression - Error design vector length - no missings
Replies: 11
Views: 6054

Re: multinomial logistic regression - Error design vector length - no missings

It is hard to determine what is going on here, especially without seeing the data, however it may be related to around half the data being in one of the categories (NRM Only). Because of this there may be groups where all of the records are in this category. If MQL1 works and PQL2 doesn't then I wou...
by ChrisCharlton
Thu Dec 05, 2019 4:42 pm
Forum: runmlwin user forum
Topic: How to specify level 1 (co)variance matrices for each level 2
Replies: 6
Views: 232

Re: How to specify level 1 (co)variance matrices for each level 2

Unfortunately there is currently no way to constrain parameters using MCMC in MLwiN. The fvconstraints() is related to factor analysis (see chapter 20 of the MCMC guide). I thought you might be able to do something similar by specifying informative priors, with the values being those you want to set...
by ChrisCharlton
Thu Dec 05, 2019 3:28 pm
Forum: runmlwin user forum
Topic: using runmlwin in batch mode on Unix
Replies: 16
Views: 486

Re: using runmlwin in batch mode on Unix

I suspect that the directory where you have put the .so file is not on the library path (see https://unix.stackexchange.com/questions/22926/where-do-executables-look-for-shared-objects-at-runtime ). To get it working you would either need to move it somewhere that is (the easiest way would be to ins...
by ChrisCharlton
Wed Dec 04, 2019 4:40 pm
Forum: runmlwin user forum
Topic: How to specify level 1 (co)variance matrices for each level 2
Replies: 6
Views: 232

Re: How to specify level 1 (co)variance matrices for each level 2

I am passing the following on from George, who currently does not have access to a computer, so sorry if anything gets garbled in translation. You should be able to do this by setting up a two level random model with a level-1 variance function. You do this by entering a series of dummies for the va...