Re: [R] Recoding lists of categories of a variable

2016-10-10 Thread MACDOUGALL Margaret
: MACDOUGALL Margaret Cc: r-help@r-project.org Subject: RE: Recoding lists of categories of a variable Dear Margaret, You've had one suggestion of an alternative for recoding variables, but in addition your code is in error (see below). > -Original Message- > From: R-help [mailto:

[R] Recoding lists of categories of a variable

2016-10-10 Thread MACDOUGALL Margaret
Hello The R code mydata$newvar[oldvar = "topic1"] <- "parenttopic" is intended to recode the category 'topic 1' of the old varaible 'oldvar' a new category label 'parenttopic' by defining the new variable 'newvar'. Is there a convenient way to edit this code to allow me to recode a list of ca

Re: [R] Cross-classified multilevel binary logistic regression model with random effects at level 2

2016-09-14 Thread MACDOUGALL Margaret
body, registered in Scotland, with registration number SC005336. -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: 14 September 2016 16:17 To: MACDOUGALL Margaret Cc: r-help@r-project.org Subject: Re: [R] Cross-classified multilevel binary logistic

[R] Cross-classified multilevel binary logistic regression model with random effects at level 2

2016-09-14 Thread MACDOUGALL Margaret
Hello I am not a seasoned R user and am therefore keen to identify a book chapter that can provide structured advice on setting up the type of model I am interested in using R. I would like to run a cross-classified multilevel binary logistic regression model. The model contains two level 2 ran