Skip to contents

Converts the output of lm() into a teeMod object so that it can be used to properly account for standard errors.

Usage

as.lmitt(x, design = NULL)

as.teeMod(x, design = NULL)

Arguments

x

lm object with weights containing a WeightedDesign, or an offset from cov_adj().

design

Optional, explicitly specify the Design to be used. If the Design is specified elsewhere in x (e.g. passed as an argument to any of ate(), ett(), cov_adj() or assigned()) it will be found automatically and does not need to be passed here as well. (If different Design objects are passed (either through the lm in weights or covariance adjustment, or through this argument), an error will be produced.)

Value

teeMod object

Details

The formula with which x was created must include a treatment identifier (e.g. assigned()).