Displaying 2 results from an estimated 2 matches for "df100".
Did you mean:
gf100
2010 Jan 02
3
Help needed on applying a function across different data sets and aggregating the results into a single data set
...39;s take, for ex, the
typical data set is:
df1 <- as.data.frame(cbind(rnorm(10),rnorm(10)))
names(df1)[1] <- "A"
names(df1)[2] <- "B"
There are many such data sets, df2,df3,... I have the names stored in a list
DF <- cbind("df1","df2",...,"df100")
I now need to apply the following function:
a <- lsfit(df1$A,df1$B)
and stack up the following results:
a$coef
Intercept X
-0.1479750 0.2485416
So, I would end up with as many rows as there are data sets.
I think sapply would be the function I should be looking for (at le...
2004 Jul 12
6
proportions confidence intervals
Dear R users
this may be a simple question - but i would appreciate any thoughts
does anyone know how you would get one lower and one upper confidence
interval for a set of data that consists of proportions. i.e. taking a
usual confidence interval for normal data would result in the lower
confidence interval being negative - which is not possible given the data
(which is constrained between