Package: PStrata 1.0.2

Bo Liu

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:Bo Liu [aut, cre], Fan Li [ctb]

PStrata_1.0.2.tar.gz
PStrata_1.0.2.zip(r-4.7-any)PStrata_1.0.2.zip(r-4.6-any)PStrata_1.0.2.zip(r-4.5-any)
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
DESCRIPTION
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

Datasets:

On CRAN:

Conda:

4.02 score 7 stars 4 scripts 410 downloads 20 exports 61 dependencies

Last updated from:902dc3b61e. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK140
source / vignettesOK165
linux-release-x86_64OK160
macos-release-arm64OK132
macos-oldrel-arm64OK120
windows-develOK86
windows-releaseOK111
windows-oldrelOK97
wasm-releaseOK142

Exports:contrastdiagnosticsestimatefitmake_stancodeprior_cauchyprior_chisqprior_exponentialprior_flatprior_gammaprior_inv_chisqprior_inv_gammaprior_lassoprior_logisticprior_normalprior_tprior_weibullPStrataModelstancode.PStrataFitsurvival

Dependencies:abindbackportsBHbootcallrcheckmateclicpp11descdistributionalfarvergenericsggplot2gluegridExtragtableinlineisobandlabelinglatticelifecyclelme4loomagrittrMASSMatrixmatrixStatsminqanlmenloptrnumDerivotelpillarpkgbuildpkgconfigposteriorprocessxpspurrrQuickJSRR6rbibutilsRColorBrewerRcppRcppEigenRcppParallelRdpackreformulasrlangrstanS7scalesStanHeadersstringistringrtensorAtibbleutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Contrast Potential Outcomescontrast contrast.PSEstimate contrast.PStrataFit
MCMC Convergence Diagnosticsdiagnostics diagnostics.PStrataFit
Extract Posterior Potential Outcomesestimate estimate.PStrataFit
Fit a Principal Stratification Modelfit fit.PStrataModel
Stan Code for PStrata Modelsmake_stancode
Plot PStrataFit Objectsplot.PStrataFit
Prior Distribution Functionsprior 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 ConfoundingPStrata_PACKAGE
Define a Principal Stratification ModelPStrataModel
Simulated Dataset for Survival Outcome (Cox Model)sim_data_Cox
Simulated Dataset for Normal Outcomesim_data_normal
Extract the Generated Stan Codestancode.PStrataFit
Family Function for Survival Datasurvival