psdata_bin_retrospective_sp | R Documentation |
A simulated dataset representing the retrospective superpopulation (i.e. the full dataset) for propensity score weighting analysis under a retrospective design. In this design, the sampling probability is influenced by both covariates and treatment assignment.
data(psdata_bin_retrospective_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 as a function of covariates and treatment (e.g., with an additional term depending on trt
).
Survey weight computed as the inverse of sampling_prob
.
Indicator variable (0/1) denoting whether an observation was selected into the sample.
In the retrospective design, the sampling probability is determined by both covariates and treatment assignment. This dataset represents the full superpopulation in which the sampling mechanism is retrospective.
data(psdata_bin_retrospective_sp)
head(psdata_bin_retrospective_sp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.