otlse: Optimal Thresholding Least Squares

View source: R/otlse.R

otlseR Documentation

Optimal Thresholding Least Squares

Description

This is the main function to estimate the causal effects using the optimal thresholding least squares method.

Usage

otlse(X, Y, Z, crit = c("ASY", "AIC", "BIC", "CV"),
      pFact=0.3, splineMet=c("manual","bs"))

Arguments

X

A vector of covariates

Y

A vector of observed outcomes

Z

A vector of treatment indicators

crit

The method to select the piecewise polynomial knots.

pFact

The maximum number of knots when the argument knots is set to NA if n^pFact, where n is the length of X.

splineMet

Should the method be homemade (manual) of based on the bs function from the splines package?

Examples

data(simData)
fit <- otlse(simData$X, simData$Y, simData$Z) 
fit

causalOTLSE documentation built on June 9, 2022, 3:02 a.m.