Skip to content
Prev 306977 / 398506 Next

"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: