Learn R Programming

tehtuner (version 0.3.0)

print.tunevt: Print an object of class tunevt

Description

Prints a Virtual Twins model for the conditional average treatment effect with a tuned Step 2 model.

Usage

# S3 method for tunevt
print(x, digits = max(3L, getOption("digits") - 3L), ...)

Value

An object of class "tunevt".

An object of class "tunevt" is a list containing at least the following components:

call

the matched call

vtmod

the model estimated by the given step2 procedure fit with the permuted tuning parameter for the estimated CATEs from the step1 model. See vt2_lasso, vt2_rtree, or vt2_ctree for specifics.

mnpp

the MNPP for the estimated CATEs from Step 1.

theta_null

a vector of the MNPPs from each permutation under the null hypothesis.

pvalue

the probability of observing a MNPP as or more extreme as the observed MNPP under the null hypothesis of no effect heterogeneity.

z

if keepz = TRUE, the estimated CATEs from the step1 model.

Arguments

x

an object of class tunevt

digits

the number of significant digits to use when printing.

...

further arguments passed to or from other methods.