Search found 4 matches

by fionap123
Thu Jul 06, 2017 11:26 am
Forum: R2MLwiN user forum
Topic: Level 2 residuals for cross-classified logistic regression model
Replies: 7
Views: 9237

Re: Level 2 residuals for cross-classified logistic regression model

Thanks for the investigation and reply. Would it be ok to use:

binomialMCMC@residual$lev_2_resi_est_Intercept<-binomialMCMC@residual$lev_2_resi_est_Intercept/2

to replace the level 2 residuals? I would like to be able to produce some plots using caterpillarR.
by fionap123
Thu Jul 06, 2017 10:20 am
Forum: R2MLwiN user forum
Topic: Level 2 residuals for cross-classified logistic regression model
Replies: 7
Views: 9237

Re: Level 2 residuals for cross-classified logistic regression model

Hi Chris.

I ran a slightly modified version of one of the exercises from the R2MLwiN JSS article (Zhang et al., 2016, p.26-27) as follows:

library(R2MLwiN)
data("bang1")
F6 = logit(use, cons) ~ 1 + age + lc + urban + (1|district)
binomialMCMC <- runMLwiN(Formula = F6, D = "Binomial", data = bang1 ...
by fionap123
Wed Jul 05, 2017 9:25 pm
Forum: R2MLwiN user forum
Topic: Level 2 residuals for cross-classified logistic regression model
Replies: 7
Views: 9237

Re: Level 2 residuals for cross-classified logistic regression model

Thanks for your reply. I have run the model in debugmode and managed to compare the residuals and also open the relevant temp .dta file. It seems as though the R2MLwiN output is multiplying the level 2 residuals by 2.

Is there something in particular that I could attach or provide to help ...
by fionap123
Wed Jul 05, 2017 10:32 am
Forum: R2MLwiN user forum
Topic: Level 2 residuals for cross-classified logistic regression model
Replies: 7
Views: 9237

Level 2 residuals for cross-classified logistic regression model

Hello.

I have been fitting a cross-classified logistic regression model using MCMC for a binary response variable and would like to extract the estimated level 2 residuals and match these to the level 2 group names. However, the residuals I get from using the resi.store=TRUE option in R2MLwiN are ...