-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nlme and geepack #28
Comments
Here's what I currently substitute for your tidy.lme because it gives no confidence intervals. HTH, can also try a PR. my_tidy.lme = function(fit, effects = "fixed") {
if(effects == "fixed") {
confintervals = data.frame(nlme::intervals(fit)$fixed)
confintervals$term = rownames(confintervals)
mydf = confintervals[confintervals$term != "(Intercept)", ]
names(mydf) = c("conf.low", "estimate", "conf.high", "term")
pvals = data.frame(nlme:::summary.lme(fit)$tTable)
names(pvals) = c("estimate","std.error","df","statistic","p.value")
pvals$term = rownames(pvals)
mydf = merge(mydf, pvals[, c("term","p.value","std.error","statistic")], by = 'term')
rownames(mydf) = NULL
mydf = mydf[, c("term", "estimate", "std.error", "statistic", "p.value", "conf.low","conf.high")]
mydf
} else {
stop("Only fixed effects implemented.")
}
} |
If so, consider nlme::gls as well. |
Expanding this package to work with nlme::lme and nlme::gls would be great! |
Here are my tidiers for lme and gls, but only for fixed effects
|
At some point we gained |
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
Would you consider expanding this package to work on objects of class lme (from nlme) and objects of type geeglm (from geepack)?
The text was updated successfully, but these errors were encountered: