psdata_bin_prospective_sp | R Documentation |
A simulated dataset representing the prospective superpopulation (i.e. the full dataset) for propensity score weighting analysis under a prospective design. In this design, the sampling probability is determined solely by covariates.
data(psdata_bin_prospective_sp)
A data frame with 1500 rows and 10 variables:
Outcome variable.
Binary treatment indicator (coded as 1 and 2).
Pre-treatment covariates.
Sampling probability computed solely from covariates (e.g., using a logistic function).
Survey weight computed as the inverse of sampling_prob
.
Indicator variable (0/1) denoting whether an observation was selected into the sample.
In the prospective design, sampling is conducted before treatment assignment, and the probability of an observation being selected depends only on its covariate values.
data(psdata_bin_prospective_sp)
head(psdata_bin_prospective_sp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.