Learn R Programming

miscTools (version 0.6-28)

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, ...)

Value

numeric, the estimated standard errors of the coefficients.

Arguments

x

a statistical model, such as created by lm

...

further arguments for methods

Author

Ott Toomet otoomet@ut.ee

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

Examples

Run this code
data(cars)
lmRes <- lm(dist ~ speed, data=cars)
stdEr( lmRes )

Run the code above in your browser using DataLab