Learn R Programming

confintr (version 0.2.0)

se: Standard errors

Description

Functions to calculate standard errors of different statistics. The availability of a standard error (or statistic proportional to it) allows to apply "stud" (bootstrap t) bootstrap.

Usage

se_mean(z, na.rm = TRUE, ...)

se_mean_diff(z, y, na.rm = TRUE, var.equal = FALSE, ...)

se_var(z, na.rm = TRUE, ...)

se_proportion(z, na.rm = TRUE, ...)

Value

A numeric vector of length one.

Arguments

z

Numeric vector.

na.rm

Should missing values be removed before calculation? The default is TRUE for convenience.

...

Further arguments to be passed from other methods.

y

Numeric vector.

var.equal

Should the two variances be treated as being equal? The default is FALSE. If TRUE, the pooled variance is used to estimate the variance of the mean difference. Otherweise, Welch's approach is used (see stats::t.test). This also applies to the "stud" bootstrap.

Examples

Run this code
se_mean(1:100)

Run the code above in your browser using DataLab