Perform post hoc analysis based on residuals of Pearson's Chi-squared Test for Count Data based on T. Mark Beasley & Randall E. Schumacker (1995) <doi: 10.1080/00220973.1995.9943797>.

Provides the facility to perform the chi-square and G-square test of independence, calculates the power of the traditional chi-square test, compute permutation and Monte Carlo p-value, and provides measures of association for tables of any size such as Phi, Phi corrected, odds ratio with 95 percent CI and p-value, Yule' Q and Y, adjusted contingency coefficient, Cramer's V, V corrected, V standardised, bias-corrected V, W, Cohen's w, Goodman-Kruskal's lambda, gamma, tau, Cohen's k. It also calculates standardised, moment-corrected standardised, and adjusted standardised residuals, and their significance, as well as the Quetelet Index, IJ association factor, and adjusted standardised counts. It also computes the chi-square-maximising version of the input table. Different outputs are returned in nicely formatted tables.

For developers to check user-supplied function arguments.  It
    is designed to be simple, fast and customizable.  Error messages
    follow the tidyverse style guide.

Fit Bayesian models in Stan <doi: 10.18637/jss.v076.i01> 
  with checkpointing, that is, the ability to stop the MCMC sampler at 
  will, and then pick right back up where the MCMC sampler left off. 
  Custom 'Stan' models can be fitted, or the popular package 'brms' 
  <doi: 10.18637/jss.v080.i01> can be used to generate the 'Stan' code. This 
  package is fully compatible with the R packages 'brms', 'posterior', 'cmdstanr', 
  and 'bayesplot'.

As different antipsychotic medications have different potencies,
    the doses of different medications cannot be directly compared. Various
    strategies are used to convert doses into a common reference so that
    comparison is meaningful. Chlorpromazine (CPZ) has historically been used
    as a reference medication into which other antipsychotic doses can be
    converted, as "chlorpromazine-equivalent doses". Using conversion keys
    generated from widely-cited scientific papers, e.g. Gardner et. al 2010
    <doi:10.1176/appi.ajp.2009.09060802> and Leucht et al. 2016
    <doi:10.1093/schbul/sbv167>, antipsychotic doses are converted
    to CPZ (or any specified antipsychotic) equivalents. The use of the package
    is described in the included vignette. Not for clinical use.