search for: lmid

Displaying 1 result from an estimated 1 matches for "lmid".

Did you mean: laid
2011 Oct 24
1
using lme and 'by' function to extract the co-efficients by individuals
...rning. Here is a sample of my code: mod_1 <- lme(pots_hauled ~ rc_a_vpue ,(random = ~1 | a_vpue), data = data1) by(data1, id, summary) by(data1, list(pots_hauled=pots_hauled,id=id ), summary) by(data1, id, function(x) lme(pots_hauled ~ a_vpue ,(random = ~1 | ns_a_vpue), data = data1))) lmid <- by(data1, id, function(x) lme(pots_hauled ~ a_vpue ,(random = ~1 | ns_a_vpue), data = data1)) sapply(lmid, coef) Any help would be much appretiated! Tom Pienkowski -- View this message in context: http://r.789695.n4.nabble.com/using-lme-and-by-function-to-extract-the-co-efficients-by-in...