[R] random effects correlation in lmer

2009-11-23 Thread Kurt Smith
rge as I increase the size of the data set, or have a reasonable distribution over several bootstrap samples. This suggests to me there is a singularity or something in solving for the random effects correlation. Does anyone have any insight? Thanks, Kurt Sm

[R] Finding covariance in a lmer mixed effects model

2009-11-11 Thread Kurt Smith
I am having difficulty finding the covariance for the random effects in a mixed effects model. I fit this model: fm1 <- lmer(fpg ~ 1 + time + (1|ID) + (0+time|ID),fpg_lme) and want to find the covariance between the time and intercept random effects. I tried using VarCorr (see below) but it does

[R] multiple imputation with mix package

2009-10-21 Thread Kurt Smith
I am running into a problem using 'mix' for multiple imputation (over continuous and categorical variables). For the way I will be using this I would like to create an imputation model on some training data set and then use this model to impute missing values for a different set of individuals (i.

Re: [R] Remove all spaces from a string so it can be used by assign() -- A Fortune?

2009-07-07 Thread Kurt Smith
rg [mailto:r-help-boun...@r-project.org] On > Behalf Of Greg Snow > Sent: Friday, July 03, 2009 7:00 PM > To: Kurt Smith; r-help@r-project.org > Subject: Re: [R] Remove all spaces from a string so it can be used by > assign() > > The only people who should use the assign functi

Re: [R] Remove all spaces from a string so it can be used by assign()

2009-07-03 Thread Kurt Smith
ct: Re: [R] Remove all spaces from a string so it can be used by assign() > > On 07/03/2009 02:13 PM, Kurt Smith wrote: > > Are you sure it would work? > > > > It works when I physically enter "56 Fe [1]" but fails when I try to > > enter that anything ot

[R] Remove all spaces from a string so it can be used by assign()

2009-07-03 Thread Kurt Smith
Hi I have a string "56 Fe [1]" that I would like to use as a variable name by using "assign" however I think the spaces and brackets might be causing R some trouble. How can I change the string so that it just becomes 56Fe1 and can be used as a variable name. Thank You Kurt