Search found 30 matches

Wed Apr 18, 2018 12:35 pm
Forum: R2MLwiN user forum
Topic: Specifying weight in R2MLwiN
Replies: 8
Views: 3615

Re: Specifying weight in R2MLwiN

Hi, I have a similar problem before. However, the problem was solved after I upgraded the MLwiN to version 3.02 and installed R2MLwiN using

Code: Select all

``````library(devtools)
install_github("rforge/r2mlwin", subdir="R2MLwiN")
``````
http://www.bristol.ac.uk/cmm/software/r2mlwin/

Vivian
Tue Apr 17, 2018 11:10 am
Forum: R2MLwiN user forum
Topic: Using predict() to calculate predicted value
Replies: 6
Views: 3317

Re: Using predict() to calculate predicted value

I get what you mean. Thanks!!
Tue Apr 17, 2018 10:44 am
Forum: R2MLwiN user forum
Topic: Using predict() to calculate predicted value
Replies: 6
Views: 3317

Re: Using predict() to calculate predicted value

Do you mean in this case I need to manually add 4 columns of Intercept into the data frame?

Thanks,
Vivian
Tue Apr 17, 2018 9:25 am
Forum: R2MLwiN user forum
Topic: Using predict() to calculate predicted value
Replies: 6
Views: 3317

Re: Using predict() to calculate predicted value

Hi Chris, Thanks for your quick reply. I replicate the example from http://www.bristol.ac.uk/cmm/media/r2mlwin/MCMCGuide13.R . data(alevchem, package = "R2MLwiN") alevchem\$gcseav <- double2singlePrecision(alevchem\$gcse_tot/alevchem\$gcse_no - 6) model1 <- runMLwiN(a_point ~ 1 + gcseav + I(gcseav^2) +...
Mon Apr 16, 2018 2:54 pm
Forum: R2MLwiN user forum
Topic: Using predict() to calculate predicted value
Replies: 6
Views: 3317

Using predict() to calculate predicted value

Hi, I'm following the suggestion from this post https://www.cmm.bristol.ac.uk/forum/viewtopic.php?f=7&t=2010&p=4572&hilit=predict&sid=a398d4a33ea73179434b8589781fa976#p4572 to replicate the standardised residual vs predicted value within R. I am two models. Model 1 is a 2-level random slope model wi...
Thu Apr 12, 2018 11:04 am
Forum: R2MLwiN user forum
Topic: Fail to store residual for cross-classified model
Replies: 2
Views: 1912

Re: Fail to store residual for cross-classified model

Thanks a lot.
Sun Apr 01, 2018 9:17 pm
Forum: R2MLwiN user forum
Topic: Fail to store residual for cross-classified model
Replies: 2
Views: 1912

Fail to store residual for cross-classified model

Hi, I am running a cross-classified cumulative logit model for my ordinal outcome. I used the following codes to store the residual: estoptions = list(resi.store = TRUE, resi.store.levs = c(2, 3, 4), xc = TRUE, EstM = 1 However, I have this error: Error: memory exhausted (limit reached?) In this cas...
Sun Aug 27, 2017 2:39 pm
Forum: R2MLwiN user forum
Topic: Interpretation of coefficient in multilevel cumulative logit model
Replies: 4
Views: 2407

Re: Interpretation of coefficient in multilevel cumulative logit model

Wed Aug 16, 2017 7:04 pm
Forum: R2MLwiN user forum
Topic: Predicted Probability for cross-classified ML model
Replies: 1
Views: 1365

Predicted Probability for cross-classified ML model

Hi, I would like to calculate the population-averaged probability for a cross-classified ML model. I have read this post: https://www.cmm.bristol.ac.uk/forum/viewtopic.php?f=3&t=1558&p=3867&hilit=predicted+probability&sid=16e1ae467bd040ff6cbae53ea3c523fb#p3867 , 2. Depends on whether you want cluste...
Wed Aug 09, 2017 1:02 pm
Forum: R2MLwiN user forum
Topic: Level 2 residuals for ML cumulative logit model
Replies: 5
Views: 2676

Re: Level 2 residuals for ML cumulative logit model

Hi, I'm using data (9.1wsz) from Module 9. The data is converted to dta and then imported to R. The categorical variable (occtype) is converted into dummy variables. Here is the syntax for replicating the random slope model: data9.1\$occtype0 <- dummy.code(data9.1\$occtype) RSmodel <- runMLwiN(logit(e...