tlse | R Documentation |
This is the main function to estimate the causal effects using the semiparametric thresholding least squares method.
tlse(model, selType=c("SLSE","BTLSE","FTLSE"),
selCrit = c("ASY", "AIC", "BIC"),
causal = c("ALL","ACT","ACE","ACN"),
seType=c("analytical", "lm"),
minPV = function(p) 1/log(p), vcov.=NULL, ...)
model |
A model of class |
selType |
The method for selecting the piecewise polynomial knots. |
selCrit |
The criterion to select the piecewise polynomial knots. |
causal |
What causal effect should we compute. |
seType |
Should the causal effect standard errors be computed based on an analytical expression or based on least squares asymptotics. |
minPV |
A function to determine the threshold for the significance of the coefficients. It has to be a function of one parameter, which is the average number of knots in the model. |
vcov. |
An alternative function to compute the covariance matrix
of the least squares estimators. The default is the |
... |
Additional arguments to pass to |
data(simData)
mod1 <- setModel(Y~Z|~X1*X2, data=simData)
fit <- tlse(mod1, selType="BTLSE", vcov.=sandwich::vcovHC, type="HC3")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.