check_nuisance_models {tidyhte}R Documentation

Checks that nuisance models have been estimated and exist in the supplied dataset.

Description

This helper function makes a few simple checks to identify obvious issues with the way that nuisance functions are created and prepared.

Usage

check_nuisance_models(data)

Arguments

data

Dataframe which should have appropriate columns of nuisance function predictions: .pi_hat, .mu0_hat, and .mu1_hat

Value

Returns NULL. Errors if a problem is discovered.


[Package tidyhte version 1.0.2 Index]