[R] lme: Can not find groupData object in a function could this be a scoping problem?

JS Huang js.huang at protective.com
Sat Feb 14 00:22:24 CET 2015


Hi,

  Unless you defined SS somewhere before you execute "data <-
data.frame(group=c(rep("Cont",SS),rep("Exp",SS)), pre=pre,post=post)", SS is
not assigned.  Maybe it is TS you intended?

doit<- function(TS,rho,premean,presd,RxEffect) { 
. 
. 
. 
  # Prepare data frames for regression analyses. 
  data <- data.frame(group=c(rep("Cont",SS),rep("Exp",SS)), 
                   pre=pre,post=post)   



--
View this message in context: http://r.789695.n4.nabble.com/lme-Can-not-find-groupData-object-in-a-function-could-this-be-a-scoping-problem-tp4703243p4703247.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list