itt_tot_model: ITT and TOT Model Function

Description Usage Arguments Examples

View source: R/function_totanditt.R

Description

This function computes multiple ITT and TOT models at once. Produces robust standard errors.

Usage

1
itt_tot_model(sourcefile, I, varlist, assignvar, treatvar, weight = NULL)

Arguments

sourcefile

is your dataframe, should include a variable for treatment assignment and whatever demographics.

I

is the outcome being predicted.

varlist

is a vector of your covariates (things you are controlling for)- all should be the names of columns in your dataset.

assignvar

is the specific column that specifies the treatment/control split in your sample. Also, your blocking variable should be "blocknum".

treatvar

is the column specifying actual treatment dosage regardless of assignment.

Examples

1

skirmer/skpack documentation built on May 30, 2019, 1:06 a.m.