On 2/10/2014 11:12 AM, Bert Gunter wrote:
Perhaps:
?tapply
and/or various wrappers like ?by .
Cheers,
Bert
Thanks, Bert
The examples for ?by gave the answer I was looking for:
# using by()
mods <- with(Punishment,
by(Punishment, list(age, education),
function(x) loglm(Freq ~ memory + attitude, data=x)
))
--
Michael Friendly Email: friendly AT yorku DOT ca
Professor, Psychology Dept. & Chair, Quantitative Methods
York University Voice: 416 736-2100 x66249 Fax: 416 736-5814
4700 Keele Street Web: http://www.datavis.ca
Toronto, ONT M3J 1P3 CANADA
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.