Re: [R] Dataframes and text identifier columns

2014-07-03 Thread Brian Willis
Thank you for the suggestion What seems to work is assigning out_put$Case - Inp_dat$Case that is for(i in 1:4) { ... Case- Inp_dat$Case[i] … out_put[i,]-data.frame(Case, stdL, stdPP, stdSE, L, PP, PP_SE) } out_put$Case - Inp_dat$Case out_put What I don't understand is

Re: [R] Dataframes and text identifier columns

2014-07-02 Thread Brian Willis
Apologies I was trying to simplify the programme and missed out four input files. The files on Andrew, Burt, Charlie and Dave have the same format of one factor and 13 numeric variables with repeated measurements eg. Study v1 v2 v3 v4 v5 v6 v7 v8 v9

[R] Dataframes and text identifier columns

2014-06-29 Thread Brian Willis
I am trying to incrementally add rows to an empty data frame. The data has 7 columns, the last 6 are numeric. For the first columns I would like to include a text identifier, called ‘Case’ like Andrew, Burt, Charlie etc. that is also output to a data frame – this is where I am having the problem

Re: [R] Extracting the names of coefficients of random effects

2014-05-10 Thread Brian Willis
Thanks, modifying the predict function to allow for new levels was what was required Brian -- View this message in context: http://r.789695.n4.nabble.com/Extracting-the-names-of-coefficients-of-random-effects-tp4689109p4690298.html Sent from the R help mailing list archive at Nabble.com.

[R] Extracting the names of coefficients of random effects

2014-04-19 Thread Brian Willis
Hi All, I need to be able to manipulate the names of the coefficients from *ranef()*. If there is any missing data when fitting a mixed model using lmer, no estimate is returned for the associated level for that random effect. Thus if the data input for regions had levels *Region*

[R] Confidence interval for response variable in mixed effects models

2010-10-30 Thread Brian Willis
HI, I am using lmer() for a simple mixed effects model. The model is of the form logit(y)~ x + (1|z), where x is an indicator variable and z a multi-level factor. I would like an estimate of the response variable (either y or logit y) with an associated confidence interval for a given value of