Converts the output of lm()
into a teeMod
object so that it can be used to properly account for standard errors.
Arguments
- x
lm
object with weights containing aWeightedDesign
, or an offset fromcov_adj()
.- design
Optional, explicitly specify the
Design
to be used. If theDesign
is specified elsewhere inx
(e.g. passed as an argument to any ofate()
,ett()
,cov_adj()
orassigned()
) it will be found automatically and does not need to be passed here as well. (If differentDesign
objects are passed (either through thelm
in weights or covariance adjustment, or through this argument), an error will be produced.)
Details
The formula with which x
was created must include a
treatment identifier (e.g. assigned()
).