Package: PStrata 1.0.2
PStrata: Principal Stratification Analysis in R
Estimating causal effects in the presence of post-treatment confounding using principal stratification. 'PStrata' allows for customized monotonicity assumptions and exclusion restriction assumptions, with automatic full Bayesian inference supported by 'Stan'. The main workflow is PStrataModel() to specify the model, fit() to run MCMC sampling, estimate() to extract potential outcomes, and contrast() to compute causal effects. Visualization tools are provided for diagnosis and interpretation. See Liu and Li (2023) <doi:10.48550/arXiv.2304.02740> for details.
Authors:
PStrata_1.0.2.tar.gz
PStrata_1.0.2.zip(r-4.7)PStrata_1.0.2.zip(r-4.6)PStrata_1.0.2.zip(r-4.5)
PStrata_1.0.2.tgz(r-4.6-any)PStrata_1.0.2.tgz(r-4.5-any)
PStrata_1.0.2.tar.gz(r-4.7-any)PStrata_1.0.2.tar.gz(r-4.6-any)
PStrata_1.0.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
PStrata/json (API)
| # Install 'PStrata' in R: |
| install.packages('PStrata', repos = c('https://laubok.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/laubok/pstrata/issues
- sim_data_Cox - Simulated Dataset for Survival Outcome
- sim_data_normal - Simulated Dataset for Normal Outcome
Last updated from:902dc3b61e. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 145 | ||
| source / vignettes | OK | 198 | ||
| linux-release-x86_64 | OK | 190 | ||
| macos-release-arm64 | OK | 191 | ||
| macos-oldrel-arm64 | OK | 160 | ||
| windows-devel | OK | 104 | ||
| windows-release | OK | 101 | ||
| windows-oldrel | OK | 92 | ||
| wasm-release | OK | 138 |
Exports:contrastdiagnosticsestimatefitmake_stancodeprior_cauchyprior_chisqprior_exponentialprior_flatprior_gammaprior_inv_chisqprior_inv_gammaprior_lassoprior_logisticprior_normalprior_tprior_weibullPStrataModelstancode.PStrataFitsurvival
Dependencies:abindbackportsBHbootcallrcheckmateclicpp11descdistributionalfarvergenericsggplot2gluegridExtragtableinlineisobandlabelinglatticelifecyclelme4loomagrittrMASSMatrixmatrixStatsminqanlmenloptrnumDerivpillarpkgbuildpkgconfigposteriorprocessxpspurrrQuickJSRR6rbibutilsRColorBrewerRcppRcppEigenRcppParallelRdpackreformulasrlangrstanS7scalesStanHeadersstringistringrtensorAtibbleutf8vctrsviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Contrast Potential Outcomes | contrast contrast.PSEstimate contrast.PStrataFit |
| MCMC Convergence Diagnostics | diagnostics diagnostics.PStrataFit |
| Extract Posterior Potential Outcomes | estimate estimate.PStrataFit |
| Fit a Principal Stratification Model | fit fit.PStrataModel |
| Stan Code for PStrata Models | make_stancode |
| Plot PStrataFit Objects | plot.PStrataFit |
| Prior Distribution Functions | prior prior_cauchy prior_chisq prior_exponential prior_flat prior_gamma prior_inv_chisq prior_inv_gamma prior_lasso prior_logistic prior_normal prior_t prior_weibull |
| PStrata: Principal STRATification Analysis for Data with Post-Randomization Confounding | PStrata_PACKAGE |
| Define a Principal Stratification Model | PStrataModel |
| Simulated Dataset for Survival Outcome (Cox Model) | sim_data_Cox |
| Simulated Dataset for Normal Outcome | sim_data_normal |
| Extract the Generated Stan Code | stancode.PStrataFit |
| Family Function for Survival Data | survival |
