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

View source: R/get_ci.R

get_ciR Documentation

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)

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

Value

get_ci returns upper and lower 95 percent confidence lines.


causaldrf documentation built on Sept. 30, 2022, 1:07 a.m.