[R] fitting structured conditional (subset) models with loglm
Michael Friendly
friendly at yorku.ca
Mon Feb 10 19:23:43 CET 2014
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
More information about the R-help
mailing list