Cara Gormally
2005-Mar-11 01:40 UTC
[R] Bonferroni simultaneous confidence intervals for multiple regression
Hi, I'm having no luck figuring out how to find Bonferroni simultaneous confidence intervals to obtain a family of estimates in R. Does anyone know how to do this? Thank you!
Dieter Menne
2005-Mar-11 10:35 UTC
[R] Bonferroni simultaneous confidence intervals for multiple regression
Cara Gormally <cgormally <at> plantbio.uga.edu> writes:> I'm having no luck figuring out how to find Bonferroni simultaneousconfidence intervals to obtain a> family of estimates in R.Try package multcomp (no Bonferroni, but more powerful alternatives) or multtest on Bioconductor (Bonferroni-family, but only p-value). Dieter Menne
John Fox
2005-Mar-11 12:29 UTC
[R] Bonferroni simultaneous confidence intervals for multipleregression
Dear Cara, You could use the confint() function, setting the level argument to 1 - alpha/length(coefficients(model)), where model is the linear model that you've fit and alpha is the complement of the level of confidence. If you're interested only in a subset of say p coefficients, then use 1 - alpha/p. I hope this helps, John -------------------------------- John Fox Department of Sociology McMaster University Hamilton, Ontario Canada L8S 4M4 905-525-9140x23604 http://socserv.mcmaster.ca/jfox --------------------------------> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Cara Gormally > Sent: Thursday, March 10, 2005 8:41 PM > To: R-help at stat.math.ethz.ch > Subject: [R] Bonferroni simultaneous confidence intervals for > multipleregression > > Hi, > > I'm having no luck figuring out how to find Bonferroni > simultaneous confidence intervals to obtain a family of > estimates in R. Does anyone know how to do this? > Thank you! > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html