coef.lod_lm: Extract lod_lm Coefficients

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/LOD_reg.R

Description

Extracts estimates regression coefficients from object of class "lod_lm".

Usage

1
2
## S3 method for class 'lod_lm'
coef(object, ...)

Arguments

object

An object of class "lod_lm", usually, a result of a call to lod_lm

...

further arguments passed to or from other methods.

Value

Coefficients extracted from object as a named numeric vector.

Author(s)

Kevin Donovan, kmdono02@ad.unc.edu.

Maintainer: Kevin Donovan <kmdono02@ad.unc.edu>

References

\insertRef

maylodr

See Also

fitted.lod_lm and residuals.lod_lm for related methods; lod_lm for model fitting.

The generic functions fitted and residuals.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 library(lodr)
 ## Using example dataset provided in lodr package: lod_data_ex
 ## 3 covariates: x1, x2, x3 with x2 and x3 subject to a lower limit of
 ## detection of 0

 ## nSamples set to 100 for computational speed/illustration purposes only.  
 ## At least 250 is recommended.  Same for boots=0; results in NAs returned for standard errors
 fit <- lod_lm(data=lod_data_ex, frmla=y~x1+x2+x3, lod=c(0,0),
                   var_LOD=c("x2", "x3"), nSamples=100, boots=0)
 coef(fit)

lodr documentation built on April 14, 2020, 5:42 p.m.