Displaying 1 result from an estimated 1 matches for "frmla".
Did you mean:
  fmla
  
2010 Jul 23
1
model.tables call fails with "Error in inherits(object, "formula")"
...rmula(frmlb), dat);
     print(model.tables(aovfit, "means"));
     frmlc <- "yield ~ block + Error(N/block)";   # DOES NOT WORK
     aovfit <- aov(as.formula(frmlc), dat);
     print(model.tables(aovfit, "means"));
}
utils::data(npk, package="MASS");
frmla <- "yield ~ block + Error(N/block)";       # WORKS
aovfit <- aov(as.formula(frmla), npk);
print(model.tables(aovfit, "means"));
test(npk);
## End of example
Output of sessionInfo():
R version 2.11.1 (2010-05-31)
i386-pc-mingw32
locale:
[1] LC_COLLATE=Finnish_Finland.12...