Learn R Programming

miscTools (version 0.6-22)

stdEr: Standard deviations

Description

Extract standard deviations from estimated models.

Usage

stdEr(x, ...)
# S3 method for default
stdEr(x, …)
# S3 method for lm
stdEr(x, …)

Arguments

x

a statistical model, such as created by lm

further arguments for methods

Value

numeric, the estimated standard errors of the coefficients.

Details

stdEr is a generic function with methods for objects of "lm" class. The default method returns the square root of the diagonal of the variance-covariance matrix.

See Also

vcov, summary.

Examples

Run this code
# NOT RUN {
data(cars)
lmRes <- lm(dist ~ speed, data=cars)
stdEr( lmRes )
# }

Run the code above in your browser using DataLab