otlse | R Documentation |
This is the main function to estimate the causal effects using the optimal thresholding least squares method.
otlse(X, Y, Z, crit = c("ASY", "AIC", "BIC", "CV"), pFact=0.3, splineMet=c("manual","bs"))
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 |
splineMet |
Should the method be homemade (manual) of based on the
|
data(simData) fit <- otlse(simData$X, simData$Y, simData$Z) fit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.