Skip to content

"Explore" SPSS function in R

4 messages · MARIA RODRIGUEZ, R. Michael Weylandt, William Dunlap +1 more

#
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:
I'm afraid I don't know what that means.... like a t.test()? Or ANOVA?
#
Can you tell us what "Explore" gives you for the following dataset?
"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
#
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: