"Explore" SPSS function in R
Hi Maria,
I suggest starting with the by() function. Here is an example to get
you started:
by(mtcars$mpg,
INDICES = mtcars[c("cyl", "am")],
FUN = function(x) {
list(summary = summary(x),
mean.CI95 = confint(lm(x ~ 1))),
})
Best,
Ista
On Thu, Oct 4, 2012 at 10:28 AM, MARIA RODRIGUEZ <mrodriguez5 at imim.es> wrote:
Hi everyone, Does anybody knows if there is an equivalent R function that gives the same outcome as in "Explore" function in SPSS ? (Analize->Descriptive Statistics->Explore) It does a categorical vs quantitative variables analysis. ( But not linear regression) I need to compare intragroup (categorical variable with 4 values) means and confidence intervals of a quantitative variable. Just like "Explore" function does. Thanks a lot -- View this message in context: http://r.789695.n4.nabble.com/Explore-SPSS-function-in-R-tp4645013.html Sent from the R help mailing list archive at Nabble.com.
______________________________________________ R-help at 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.