Package: PStrata 0.0.3
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 function to use in this package is PStrata(), which provides posterior estimates of principal causal effect with uncertainty quantification. Visualization tools are also provided for diagnosis and interpretation. See Liu and Li (2023) <arxiv:2304.02740> for details.
Authors:
PStrata_0.0.3.tar.gz
PStrata_0.0.3.zip(r-4.5)PStrata_0.0.3.zip(r-4.4)PStrata_0.0.3.zip(r-4.3)
PStrata_0.0.3.tgz(r-4.4-any)PStrata_0.0.3.tgz(r-4.3-any)
PStrata_0.0.3.tar.gz(r-4.5-noble)PStrata_0.0.3.tar.gz(r-4.4-noble)
PStrata_0.0.3.tgz(r-4.4-emscripten)PStrata_0.0.3.tgz(r-4.3-emscripten)
PStrata.pdf |PStrata.html✨
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 1 years agofrom:8fb9c05aca. Checks:OK: 1 WARNING: 6. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Oct 29 2024 |
R-4.5-win | WARNING | Oct 29 2024 |
R-4.5-linux | WARNING | Oct 29 2024 |
R-4.4-win | WARNING | Oct 29 2024 |
R-4.4-mac | WARNING | Oct 29 2024 |
R-4.3-win | WARNING | Oct 29 2024 |
R-4.3-mac | WARNING | Oct 29 2024 |
Exports:make_stancodemake_standataprior_cauchyprior_chisqprior_exponentialprior_flatprior_gammaprior_inv_chisqprior_inv_gammaprior_lassoprior_logisticprior_normalprior_tprior_weibullPSContrastPSFormulaPSObjectPSOutcomePSSamplePStrataPStrataInfosurvival
Dependencies:abindbackportsBHbootcallrcheckmateclicolorspacedescdistributionaldplyrfansifarvergenericsggplot2gluegridExtragtableinlineisobandlabelinglatticelifecyclelme4loomagrittrMASSMatrixmatrixStatsmgcvminqamunsellnlmenloptrnumDerivpillarpkgbuildpkgconfigposteriorprocessxpspurrrQuickJSRR6RColorBrewerRcppRcppEigenRcppParallelrlangrstanscalesStanHeadersstringistringrtensorAtibbletidyselectutf8vctrsviridisLitewithr
Readme and manuals
Help Manual
Help page | Topics |
---|---|
PStrata: Principal STRATification Analysis for Data with Post-Randomization Confounding | PStrata-package |
*Stan* Code for 'PStrata' Models | make_stancode |
Data for 'PStrata' Models | make_standata |
Prior 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 |
Contrast of potential outcome for principal stratification analysis | PSContrast |
Set up a model formula for use in 'PStrata' | PSFormula |
Create a Principal Stratification Object | PSObject |
Estimated potential outcome for principal stratification analysis | PSOutcome |
Sample with 'Stan' | PSSample |
Principal Stratification Analysis for Data with Post-Randomization Intervention | PStrata |
Create an object that defines the principal strata | PStrataInfo |
Simulated Dataset for Survival Outcome (Cox Model) | sim_data_Cox |
Simulated Dataset for Normal Outcome | sim_data_normal |
The family function for survival data | survival |