Skip to content
Prev 252092 / 398500 Next

lme error: Error in getGroups.data.frame(dataMix, groups)

Dennis,
Thank you,
John




John David Sorkin M.D., Ph.D.
Chief, Biostatistics and Informatics
University of Maryland School of Medicine Division of Gerontology
Baltimore VA Medical Center
10 North Greene Street
GRECC (BT/18/GR)
Baltimore, MD 21201-1524
(Phone) 410-605-7119
(Fax) 410-605-7913 (Please call phone number above prior to faxing)>>> Dennis Murphy <djmuser at gmail.com> 2/28/2011 4:08 PM >>>
Hi:
On Mon, Feb 28, 2011 at 8:42 AM, John Sorkin <jsorkin at grecc.umaryland.edu>wrote:

            
Where's the random factor? Perhaps you mean

lme(values ~ 1, random = ~ 1 | subject, data = withindata)

or in lme4,

lmer(values ~ 1 + (1 | subject), data = withindata)

HTH,
Dennis

PS: Use of dput() output is more helpful than copying from the console, as
it retains the same classes you have on your end.
structure(list(subject = c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L,
3L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L),
    values = c(2.3199639, -8.5795802, -4.1901241, 0.4588128,
    16.9128232, 8.9856358, 1.9303254, -1.4320313, -15.4225123,
    5.9293529, -29.2014153, -8.9684986, -11.906217, 13.2133887,
    1.2491941, -8.0613768, -5.6340179, 3.1916857, -7.7447932,
    2.2316354, 0.6444938, 4.6912677, 20.9135073, 2.1433533, -0.8057022,
    -13.0187979, 8.9634065, 13.4815344, 4.6148061, -18.4781373,
    15.5263564, -2.1993412, 5.183026, 16.2311097, -2.5781897,
    -3.016729, -0.1119353, 1.1983126, -8.8212143, 3.8895263)), .Names =
c("subject",
"values"), class = "data.frame", row.names = c("1", "2", "3",
"4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15",
"16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26",
"27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37",
"38", "39", "40"))

Below I have printed the console output, and at the bottom of this message,