[R] Problems with subsets in NLME

2009-06-25 Thread Rebecca Sela
I am trying to estimate models with subsets using the NLME package. However, I am getting an error in the case below (among others): subset - c(rep(TRUE, 107), FALSE) fm2 - lme(distance ~ age + Sex, data = Orthodont, random = ~ 1, subset=subset) Error in xj[i] : invalid subscript type

Re: [R] Problems with subsets in NLME

2009-06-25 Thread David Winsemius
On Jun 25, 2009, at 11:35 AM, Rebecca Sela wrote: I am trying to estimate models with subsets using the NLME package. However, I am getting an error in the case below (among others): subset - c(rep(TRUE, 107), FALSE) fm2 - lme(distance ~ age + Sex, data = Orthodont, random = ~ 1,

Re: [R] Problems with subsets in NLME

2009-06-25 Thread apjaworski
__ Andy Jaworski 518-1-01 Process Laboratory 3M Corporate Research Laboratory - E-mail: apjawor...@mmm.com Tel: (651) 733-6092 Fax: (651) 736-3122 Rebecca Sela rs...@stern.nyu.edu Sent by: r-help-boun...@r-project.org 06/25/2009 10:37 AM To r-help r-help@r-project.org cc Subject [R] Problems