Package: rstanemax 0.1.9.1001

rstanemax: Emax Model Analysis with 'Stan'

Perform sigmoidal Emax model fit using 'Stan' in a formula notation, without writing 'Stan' model code.

Authors:Kenta Yoshida [aut, cre], Danielle Navarro [aut], Trustees of Columbia University [cph]

rstanemax_0.1.9.1001.tar.gz
rstanemax_0.1.9.1001.zip(r-4.5)rstanemax_0.1.9.1001.zip(r-4.4)rstanemax_0.1.9.1001.zip(r-4.3)
rstanemax_0.1.9.1001.tgz(r-4.5-x86_64)rstanemax_0.1.9.1001.tgz(r-4.5-arm64)rstanemax_0.1.9.1001.tgz(r-4.4-x86_64)rstanemax_0.1.9.1001.tgz(r-4.4-arm64)rstanemax_0.1.9.1001.tgz(r-4.3-x86_64)rstanemax_0.1.9.1001.tgz(r-4.3-arm64)
rstanemax_0.1.9.1001.tar.gz(r-4.5-noble)rstanemax_0.1.9.1001.tar.gz(r-4.4-noble)
rstanemax.pdf |rstanemax.html
rstanemax/json (API)
NEWS

# Install 'rstanemax' in R:
install.packages('rstanemax', repos = c('https://yoshidk6.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/yoshidk6/rstanemax/issues

Pkgdown site:https://yoshidk6.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

cpp

5.87 score 5 stars 21 scripts 506 downloads 17 exports 60 dependencies

Last updated 2 days agofrom:86a8377593. Checks:4 OK, 7 NOTE. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKFeb 17 2025
R-4.5-win-x86_64NOTEFeb 17 2025
R-4.5-mac-x86_64OKFeb 17 2025
R-4.5-mac-aarch64OKFeb 17 2025
R-4.5-linux-x86_64OKFeb 17 2025
R-4.4-win-x86_64NOTEFeb 17 2025
R-4.4-mac-x86_64NOTEFeb 17 2025
R-4.4-mac-aarch64NOTEFeb 17 2025
R-4.3-win-x86_64NOTEFeb 17 2025
R-4.3-mac-x86_64NOTEFeb 17 2025
R-4.3-mac-aarch64NOTEFeb 17 2025

Exports:%>%as_drawsas_draws_arrayas_draws_dfas_draws_listas_draws_matrixas_draws_rvarsextract_obs_mod_frameextract_paramextract_stanfitlog_likposterior_epredposterior_linpredposterior_predictposterior_predict_quantilestan_emaxstan_emax_binary

Dependencies:abindbackportsBHcallrcheckmateclicolorspacecpp11descdistributionaldplyrfansifarvergenericsggplot2gluegridExtragtableinlineisobandlabelinglatticelifecycleloomagrittrMASSMatrixmatrixStatsmgcvmunsellnlmenumDerivpillarpkgbuildpkgconfigposteriorprocessxpspurrrQuickJSRR6RColorBrewerRcppRcppEigenRcppParallelrlangrstanrstantoolsscalesStanHeadersstringistringrtensorAtibbletidyrtidyselectutf8vctrsviridisLitewithr

Simple Emax model fit with Stan

Rendered fromemaxmodel.Rmdusingknitr::rmarkdownon Feb 17 2025.

Last update: 2024-12-05
Started: 2019-02-15

Readme and manuals

Help Manual

Help pageTopics
The 'rstanemax' package.rstanemax-package rstanemax
Convert stanemax object to a posterior draws objectas_draws as_draws.stanemax as_draws.stanemaxbin as_draws_array as_draws_array.stanemax as_draws_array.stanemaxbin as_draws_df as_draws_df.stanemax as_draws_df.stanemaxbin as_draws_list as_draws_list.stanemax as_draws_list.stanemaxbin as_draws_matrix as_draws_matrix.stanemax as_draws_matrix.stanemaxbin as_draws_rvars as_draws_rvars.stanemax as_draws_rvars.stanemaxbin
Sample simulated data for exposure-response.exposure.response.sample
Sample simulated data for exposure-response for binary endpointexposure.response.sample.binary
Sample simulated data for exposure-response with covariatesexposure.response.sample.with.cov
Extract posterior draws of key parametersextract_param
Calculate log-likelihoods from posterior samples. Data can be either original data used for model fit or new data.log_lik log_lik.stanemax log_lik.stanemaxbin
Outcome prediction from posterior distribution of parametersposterior_epred posterior_epred.stanemax posterior_epred.stanemaxbin posterior_linpred posterior_linpred.stanemax posterior_linpred.stanemaxbin posterior_predict posterior_predict.stanemax posterior_predict.stanemaxbin posterior_predict_quantile
Bayesian Emax model fit with Stanstan_emax
Bayesian Emax model fit with Stan for binary endpointstan_emax_binary
Methods for stanemax objectsextract_obs_mod_frame extract_stanfit plot.stanemax plot.stanemaxbin print.stanemax print.stanemaxbin stanemax-methods