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.
On Thu, Oct 4, 2012 at 3:28 PM, 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'm afraid I don't know what that means.... like a t.test()? Or ANOVA?> > 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.
Can you tell us what "Explore" gives you for the following dataset?> d<-data.frame(Quant=round(log2(1:24), 2), Categ=LETTERS[rep(1:4,c(8,7,6,3))]) > write.table(d, row.names=FALSE, sep="\t")"Quant" "Categ" 0 "A" 1 "A" 1.58 "A" 2 "A" 2.32 "A" 2.58 "A" 2.81 "A" 3 "A" 3.17 "B" 3.32 "B" 3.46 "B" 3.58 "B" 3.7 "B" 3.81 "B" 3.91 "B" 4 "C" 4.09 "C" 4.17 "C" 4.25 "C" 4.32 "C" 4.39 "C" 4.46 "D" 4.52 "D" 4.58 "D" Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf > Of MARIA RODRIGUEZ > Sent: Thursday, October 04, 2012 7:29 AM > To: r-help at r-project.org > Subject: [R] "Explore" SPSS function in R > > 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.
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.