get_se: Estimate the standard error of parameters using the delta...

View source: R/kinfitr_miscfuncs.R

get_seR Documentation

Estimate the standard error of parameters using the delta method

Description

This function returns the SE of parameters, as a proportion of their parameter estimates, calculated using the delta method as implemented in the car package. If the parameter does not exist, this function will return NA.

Usage

get_se(fit, expression)

Arguments

fit

A fit object for a particular model - in this case the actual lm or nls object

expression

The expression for which the SE is being calculated

Value

The SE as a proportion of the parameter estimate.

Author(s)

Granville J Matheson, mathesong@gmail.com

Examples

data(mtcars)
a <- lm(mpg ~ cyl + disp, data=mtcars)

get_se(a, "cyl")
get_se(a, "cyl/disp")


mathesong/kinfitr documentation built on Jan. 15, 2024, 11:07 p.m.