View source: R/Gaussian.kernel.R
Kang_Schafer_Simulation | R Documentation |
This function generate the simulation scenarios presented in Kang and Schafer (2007)
Kang_Schafer_Simulation( n, beta = c(-1, 0.5, -0.25, -0.1), alpha = c(210, 27.4, 13.7, 13.7, 13.7), mu = rep(0, 4), sd = diag(4), seeds )
n |
The number of sample size. |
beta |
The coefficient of the true propensity score model. Default to c(-1,0.5,-0.25,-0.1). |
alpha |
The coefficient of the true outcome model. Defaults to c(210,27.4,13.7,13.7,13.7). |
mu |
The mean of the covariates Z in the true propensity score model. Default to rep(0,4) |
sd |
The variance of the covariates Z in the true propensity score model. Default to diag(4) |
seeds |
The seed number |
A list containing the following components:
"Data": The simulated data matrix includes the outcome Y (1st column), the treatment assignment Tr (2nd column), the covariates Z in the true propensit score mode (3rd to 6th column), the observed covariates X (7th to 10th column), and the true propensity score PS (11th column).
"Treat.effect": The mean of the outcome Y
Kang, J. D. and Shafer, J. L. (2007) Demystifying double robustness: A comparison of alternative strategies for estimating a population mean from incomplete data. Statistical Science, 22, 523-539.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.