Displaying 2 results from an estimated 2 matches for "grpform".
Did you mean:
gridform
2000 Jul 24
1
How to use groupedData() within a function?
Dear Group:
I have been trying to write an R function within which the function
groupedData() would be used.
The following is a sample program:
#######################
sid<-rep(1:6,times=2)
time<-c(1:12)
trt<-rep(letters[1:3],times=4)
tem<-data.frame(sid,time,trt)
test1.fun<- function(dat=dat)
{
groupedData(time ~ trt|sid, data=dat)
}
test1.fun(dat=tem)
2003 Sep 08
0
lmList with NAs
...rgument is missing
# problem also occurs when I do not use groupedData statement .
> atry<-lmList(score~spring|schoolid, data=a)
Error in na.fail.default(data) : missing values in object
> atry<-lmList(score~spring|schoolid, data=a,na.action=F)
Error in getGroups(data, form = grpForm, level = level) :
no applicable method for "getGroups"
#don't know what I should do now.
Any help would be greatly appreciated.
(R1.7.1 for Windows)
Thank you,
Tami Hoffman
[[alternative HTML version deleted]]