View source: R/confinterval_function.R
confinterval | R Documentation |
Calculates confidence interval for groups
confinterval(resp, group, alpha = 0.95, type = "upper")
resp |
numeric vector with responses |
group |
vector with groups or list with two factors |
alpha |
confidence level of the interval |
type |
lower or upper range |
returns a numeric vector with confidence interval grouped by treatment.
#===================================
# One factor
#===================================
dados=rnorm(100,10,1)
trat=rep(paste("T",1:10),10)
confinterval(dados,trat)
#===================================
# Two factor
#===================================
f1=rep(c("A","B"),e=50)
f2=rep(paste("T",1:5),e=10,2)
confinterval(dados,list(f1,f2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.