# NOT RUN {
# mean and confidence interval
ci( rnorm(10) )
# binomial proportion and exact confidence interval
b <- rbinom( prob=0.75, size=1, n=20 )
ci.binom(b) # direct call
class(b) <- 'binom'
ci(b) # indirect call
# confidence intervals for regression parameteres
data(state)
reg <- lm(Area ~ Population, data=as.data.frame(state.x77))
ci(reg)
# }
# NOT RUN {
<!-- %\dontrun{ -->
# }
# NOT RUN {
<!-- %# mer example -->
# }
# NOT RUN {
<!-- %library(lme4) -->
# }
# NOT RUN {
<!-- %fm2 <- lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject), sleepstudy) -->
# }
# NOT RUN {
<!-- %ci(fm2) -->
# }
# NOT RUN {
<!-- %} -->
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab