Description Usage Arguments Value Methods (by generic) Examples
Calculate confidence intervals of mean or difference between means in a data.frame
1 2 3 4 |
x |
Name of a categorical or numeric column. If !missing(y), name of continuous variable |
... |
Further arguments to be passed to meanCI |
data |
A data.frame |
y |
Name of a numeric column |
group |
Name of categorical column |
paired |
logical |
idx |
A vector containing factors or strings in the x columns. These must be quoted (ie. surrounded by quotation marks). The first element will be the control group, so all differences will be computed for every other group and this first group. |
An object of class "meanCI" which is a list containing at least the following components:
A tibble containing raw data or a list of numeric vector
A data.frame consists of summary statistics
the matched call
character. One of c("mean","unpaired","paired")
meanCI
: S3 method for data.frame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | meanCI(acs,age)
meanCI(acs,sex,age)
meanCI(acs,Dx,age)
acs %>% select(age) %>% meanCI()
acs %>% select(sex,age) %>% meanCI()
meanCI(iris,Species,Sepal.Length)
meanCI(iris,Sepal.Width,Sepal.Length,paired=TRUE)
meanCI(iris,Sepal.Length,Sepal.Width)
iris %>% select(starts_with("Petal")) %>% meanCI(paired=TRUE)
iris %>% meanCI(paired=TRUE)
meanCI(acs,sex,age,Dx,mu=10)
acs %>% select(sex,TC,TG,HDLC) %>% meanCI(group=sex)
acs %>% select(sex,TC,TG,HDLC) %>% meanCI(sex)
iris %>% select(Species,starts_with("Sepal")) %>% meanCI(Species)
iris %>% select(Species,starts_with("Sepal")) %>% meanCI(group=Species)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.