stderror | R Documentation |
se is used to compute the standard error(s) for one or more variables, for one or more groups in a dataframe.
stderror(data = NULL, measurevar, groupvars = NULL, na.rm = TRUE, conf.interval = 0.95, tonumeric = TRUE)
data |
a dataframe |
measurevar |
the name(s) of column(s) that contain the variable to be summariezed |
groupvars |
a vector containing names of columns that contain grouping variables |
na.rm |
boolean that indicates whether to ignore NA values |
conf.interval |
confidence interval range |
tonumeric |
whether to convert variables/columns to numeric whenever possible |
A data.table
Code adapted from R cookbook (see references)
Hause Lin
stderror(data = mtcars, measurevar = c("mpg", "disp"), groupvars = c("cyl", "am")) stderror(data = ChickWeight, measurevar = "weight", groupvars = "Diet")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.