coef.tramnet_Lm {tramnet} | R Documentation |
"tramnet_Lm"
coef method for class "tramnet_Lm"
## S3 method for class 'tramnet_Lm' coef(object, with_baseline = FALSE, tol = 1e-06, as.lm = FALSE, ...)
object |
object of class |
with_baseline |
If |
tol |
tolerance when an estimate should be considered 0
and not returned (default: |
as.lm |
If TRUE parameters are rescaled to the usual parametrization of lm |
... |
Additional arguments to coef |
Numeric vector containing the linear model shift parameter estimates
Torsten Hothorn, Lucas Kook
data(cars) m0 <- Lm(dist ~ 1, data = cars) x <- as.matrix(cars[, "speed", drop = FALSE]) mt <- tramnet(m0, x = x, alpha = 0, lambda = 0, check_dcp = FALSE) coef(mt) coef(mt, with_baseline = TRUE) coef(mt, as.lm = TRUE) coef(lm(dist ~ speed, data = cars))