Learn R Programming

causaldrf (version 0.4.2)

get_ci: This calculates an upper and lower bound from bootstrap matrix

Description

This function takes a matrix containing the bootstrapped coefficients from a parametric ADRF estimator and returns upper and lower 95 percent confidence lines.

Usage

get_ci(grid_val,
       coef_mat,
       degree)

Value

get_ci returns upper and lower 95 percent confidence lines.

Arguments

grid_val

is the vector of grid values on treat axis

coef_mat

contains the bootstrapped parameter estimates.

degree

is 1 for linear and 2 for quadratic outcome model