NEWS
0.16.3
- MCMCdiagfix spacing issue for min neff in summary file
for- cmdstanrobjects
- MCMCdiagchange behavior so that if specified- dirdoes exist, save to home dir (‘~’)
- MCMCdiagif- mkdirname exists, append ’_1’
to filename and create
0.16.2
- Fix CRAN documentation issue
0.16.1
- Fix bug in MCMCsummarythat preventedn.efffrom being displayed forjagsUIobjects
0.16.0
- All functions now accept model objects fit with
cmdstanrpackage
- Add Table of Contents to vignette
0.15.5
- MCMCplotfix bug associated with- ref_ovl = TRUEand the specification of multiple objects.
Function also now automatically lightens colors specified (instead of
defaulting to gray) when- ref_ovl = TRUE
0.15.4
- MCMCsummaryfix bug associated with- pg0 = TRUEwhen input was derived from Stan
0.15.3
- MCMCsummarynow takes argument- pg0. When- pg0 = TRUEthe proportion of the posterior that is greater
than 0 is returned as a column
- MCMCdiagnow takes any argument from- MCMCsummaryto modify printed summary output
- Clean up documentation
0.15.2:
- MCMCdiagadd more descriptive message about output from- nimbleobjects
- MCMCtracefix rdev matrix warning
0.15.1:
- MCMCplotfix bug that prevented plotting with a single
parameter
0.15.0:
- MCMCdiagfunction added to create .txt file summarizing
model inputs and outputs and save model object as .rds file
- All functions now take exactas an argument to parse
desired parameter.ISB = TRUEno longer uses regex matching
(exactshould be used to specify this).
- Add support for objects output from the nimblepackage
- MCMCpstrfix bug where the incorrect number of
dimensions would be returned when subsetting a param with >1 dim
- MCMCplotnow takes the argument- ciwhich
can be used to specify the credible interval displayed in the
caterpillar plot
- MCMCplotnow takes the argument- HPDwhich
can be used to specify whether highest posterior density intervals or
equal-tailed intervals should be displayed in the caterpillar plot
0.14.3:
- MCMCplotfix bug where error would result when trying
to plot a single parameter
0.14.2:
- MCMCplotcan now plot models that have NA for posterior
estimates. Useful when plotting two models side-by-side is desired and
one model has parameters that the other does not (use MCMCchains to
create matrix of draws, add NA-filled cols with missing parameter names,
and plot)
0.14.1:
- MCMCtracefix undesired behavior when- post_zmis specified as- FALSE
0.14.0:
- MCMCsummaryfor model objects fit with- jagsUI, the function now returns Rhat and n.eff values that
coincide with values calculated in that package (e.g., split-chain
Rhat), rather than calculating these with the- codapackage.
These values are fed into- MCMCtracewhen- Rhatand/or- n.effare specified as- TRUE.
- MCMCsummaryfix bug where an error was returned when- func_namewas not specified
0.13.6:
- MCMCtracenow accepts expression input (for Greek
characters etc.) from R for- main_denand- main_trargs
0.13.5:
- All functions now avoid using function class(and useisinstead) asmatrixobjects will also bearrayas of R 4.0.0
0.13.4:
- MCMCtraceno longer changes working dir when- wdis specified - just puts pdf there
0.13.3:
- MCMCpstrfix bug where dimensions were not displayed
properly for Stan models
- MCMCpstrfix warning with objects derived from- rstanarmand- brms
- MCMCsummarychange variable names to reflect what is
displayed by- brmspackage (rather than raw Stan
output)
0.13.2:
- MCMCsummaryfix bug thrown when one only one chain run
for Stan models
- MCMCsummaryfix Rhat label issue (from r_hat to
Rhat)
0.13.1:
- MCMCsummaryfix bug that caused stanfit parameter names
to be numbers
0.13.0:
- MCMCsummarynow takes- quantilesas an
argument, allowing user to specify which quantiles to return
- MCMCsummarynow takes- HPDas an argument
to calculate highest posterior density intervals
- MCMCsummarynow outputs as a data.frame rather than a
matrix
- MCMCchainsfix bug that output different parameters
names for- stanregand- brmsobjects
- MCMCplotfix bug that caused guidelines to plot over
appropriate bounds
0.12.6:
- MCMCplotnow has- object2,- col2, and- offsetarguments. Allows user to
plot output from two separate models, as long as both model outputs have
identical parameter names.
0.12.5:
- MCMCplotnow has- guide_linesargument, to
plot lines to help reference which posterior corresponds to each
parameter name
- Remove deprecated arguments
0.12.4:
- Add support for objects output from rstanarmandbrmspackages
- MCMCplotadd support for plotting multiple colors on
the same plot
0.12.3:
- MCMCsummaryfor- n.effthe default is now- TRUE(displays number of effective samples by default)
- MCMCtracenow has the option- plot. When- FALSEno plot is output. Used in conjunction with- PPO_out = TRUEto to calculate PPO without plotting trace
plots.
0.12.2:
- MCMCsummaryfix bug where Stan input was not being
sorted by parameter index
0.12.1:
- MCMCtracefix spacing issue for Rhat and n.eff text
when- Rhat = TRUEand- n.eff = TRUE
- MCMCplotadd deprecation warnings for arguments
0.12.0:
- MCMCsummaryfor- stanfitobjects (model
output derived from Stan) Rhat and n_eff are calculated using the- rstanpackage. Note that- rstancalculates Rhat
and n_eff values slightly differently (more conservatively) than the- codapackage (commonly used to summarize model output
derived from JAGS).
- MCMCplotthe following argument names have been
changed: orig:- labels_sz, new:- sz_labelsorig:- med_sz, new:- sz_medorig:- thick_sz, new:- sz_thickorig:- thin_sz, new:- sz_thinorig:- axis_text_sz, new:- sz_ax_txtorig:- ax_sz, new:- sz_axorig:- tick_text_sz, new:- sz_tick_txtorig:- main_text_sz, new:- sz_main_txtorig:- tick_pos, new:- pos_tick
- MCMCtraceadd ability to specify xlim and ylim for
density plots
- MCMCtraceadd ability to specify xlab and ylab for
density and trace plots
- MCMCtraceadd ability to specify title for trace and
density plot
- MCMCtraceadd ability to specify line width and line
type for density and prior lines on density plots
- MCMCtraceadd ability to specify color for density and
priors lines on density plots
- MCMCtraceadd ability to specify size and color of text
when priors specified, and the position of ticks for density and trace
plots
- MCMCtraceadd ability to specify size of tick labels,
axes labels, and thickness of axes
- MCMCtraceclean up plotting of trace plots when only
two plots are plotted in window
- MCMCtraceadd ability to include Rhat and number of
effective samples on trace plots
0.11.3:
- MCMCchainsfix error associated with coda::mcmc and- rjagsobjects
0.11.2:
- MCMCplotnow takes- guide_axisargument. If- TRUE, a second axis (x-axis if- HORIZ = TRUE,
y-axis if- HORIZ = FALSE) is plotted to help interpret
values on plot.
0.11.1:
- MCMCchainsnow assigns arbitrary names to columns
(parameters) when input type is matrix (along with a warning that it is
doing so)
- MCMCtracenow modifies the layout of trace plots when
< 6 plots are generated
- MCMCpstrfix bug that prevented scalars when type =
‘chains’
0.11.0:
- MCMCsummary- digitsargument is now NULL by
default (all computed digits are returned upon default - any rounding
must be explicitly specified)
- MCMCsummary- digitsargument uses- signifrather than- roundfor rounding (in
other words,- digitsspecifies number of significant digits
rather than number of decimal places)
- MCMCsummarynow takes- roundargument to
round output to specified number of decimal places
- MCMCpstrno longer has the option to restrict the
number of digits output (returns all digits)
- MCMCpstrnow takes- typeas an argument.
When- type = 'summary'(default), values calculated with the- funcargument (default- mean) are returned.
When- type = 'chains', posterior chains are returned while
preserving the parameter structure. Posterior samples are stored in the
last dimension of the array for each element of the output list. In this
way vector parameters are output in matrix format, matrix parameters are
output in three dimension array format (within each element of the
output list - one parameter for each list element).
- MCMCpstrnow accepts output greater than length 1 from
argument- func. If output is greater than length 1, function
output are stored in the last dimension of the array (within each
element of the output list - one parameter for each list element).
0.10.4:
- MCMCchainsnow takes- chain_numas an
argument. When specified, single posterior chains can be output for a
particular parameter of interest. Useful for determining the last value
in an MCMC chain for each parameter (to be used as initial values for a
subsequent model run).
0.10.3:
- All functions now return a warning for missing params
inexclandparamsarguments instead of an
error. This means that output will be returned even when values
specified do not exist. Change was made toMCMCchainscode
but impacts all functions.
- Fix typos
- Add contributors Che-Castaldo and Hardy
0.10.2:
- MCMCtracenow takes- post_zmas an
argument. When- post_zm = FALSE, x- and y-limits of density
plots are scaled so that both the prior and posterior can be visualized
on a plot (rather than zoomed on the posterior).
0.10.1:
- MCMCpstrfix bug to institute rounding when parameters
as scalars or vectors
- MCMCtracenow takes- PPO_outas an
argument. When- PPO_out = TRUE, the percent overlap between
prior and posterior for each paras will be returned as a
data.frame.
- Add CITATION file
0.10.0:
- Fix warning when feeding jags.parallel object to
MCMCsummary
- Fix bug that produced an error when using stanfitobjects
- Add automated tests to check package functions
- MCMCtracenow takes- open_pdfas an
argument. When- open_pdf = FALSE, the generated pdf will not
be opened in a viewer automatically.
- MCMCtracenow takes- gvalsas an argument.
When simulated data are used to fit a model, the generating values used
to simulate the data (true parameter values) will be plotted as vertical
lines on the density plots.
- MCMCplot- ref_ovlargument now defaults to
FALSE (one color is plotting for all parameter estimates)
- Change MCMC_data(example data) so that it’s smaller
(only 5k iterations and two parameters)
0.9.4:
- Fix white space issue in MCMCplotwhen many parameters
are plotted and large fig dimensions are used
- Fix label alignment issue in MCMCplotwhenhoriz = FALSEand large numbers of parameters are
plotted
0.9.3:
- Fix bug that prevented parameters from being sorted when using
matrix input for MCMCtrace
- Add support for objects produced with the jagsUI package
0.9.2:
- MCMCtracenow takes matrix input (as with the other
functions). One chain is assumed when matrix input is used.
0.9.1:
- Fix bug that produced errors when using the
jags.parallelfunction in theR2jagspackage.
- All functions - when ISB = FALSE,paramsargument now takes the form of regular expressions
- Examples for MCMCtraceno longer open up external
programs (pdf viewer) per CRAN policy
0.9.0:
- MCMCpstrfunction now added. Function returns summary
output for a specified function while preserving structure of parameters
(i.e., scalar, vector, matrix, array).
- MCMCtracenow takes a- priorsargument to
visualize prior/posterior overlap. If specified, the prior (user
specified as this information is not contained within the MCMC output)
for a specified parameter is plotted on the same plot as the posterior
output. Percent overlap between posterior and prior is also calculated
and displayed.
- Fix bug in MCMCchainsthat caused incorrect
alphabetization of parameter names when output from R2jags was
used.
0.8.2:
- MCMCsummarygreatly speed up calculation of Rhat values
for objects with large numbers of parameters
- MCMCchainsnow takes the argument- mcmc.list. If specified,- mcmc.listobject
returned rather than a matrix.
0.8.1:
- Fix bug in MCMCsummarythat displayed the same result
twice when selecting only a single output parameter of interest
- Fix bug in MCMCplotthat displayed the axis label too
close to tick labels whenhoriz = FALSEand tick labels
were very long
- MCMCsummaryRhat values always round to 2 digits
- MCMCsummaryoutput from- funcargument
rounded to specified digits for rest of output
- MCMCsummarynow takes a- func_nameargument. If specified, column displaying output from- funcwill be labeled with this name. If not specified, column will be labeled
‘func’.
- MCMCplotchange argument- x_axis_text_szand- x_tick_text_szto- axis_text_szand- tick_text_szrespectively
0.8.0:
- Specification of parameters of interest now works slightly
differently. The argument ISB(Ignore Square Bracket) has
now been added. By defaultISB = TRUE-paramsandexclmatch exactly to parameter names by default
(ignoring square brackets). WhenISB = FALSE, square
brackets will not be ignored, and will match on partial names (as when
usinggrep). This applies to all functions.
- MCMCsummarynow takes a- funcargument. If
a function is specified, it will be evaluated for all specified
parameters and specified in the- MCMCsummaryoutput.
- MCMCsummaryspeed greatly increased. Parameters of
interest are now sorted before calculations are made. Rhat values are no
longer masked, but rather not calculated when- Rhat = FALSE.
These changes result in dramatic speed ups for large objects.
- MCMCsummarybug fixed that caused function to fail when
only one chain was run
- MCMCsummarystandard deviation added to summary output
for each parameter.
- MCMCsummarynumber of effective samples added to
summary output for each parameter. Default is- n.eff = FALSE(metric will not be calculated or displayed).
- MCMCtracedefault is now to write trace plots to pdf.
Default number of iterations changed to 5000 from 2000.
- MCMCploty-axis labels now vertical when- horiz = FALSEto improve readability.
- MCMCplotbug that resulted in poor plot dimension
choices in some circumstances now fixed.
- MCMC_datanow contains three chains with 6000
iterations each.
- Error message now added about functions not taking objects produced
from jags.samplesfunction in thecodapackage.coda.samplesshould be used instead.
0.7.1:
- Fix bug in MCMCplotwhich incorrectly shaded parameter
estimates when plotted vertically
- MCMCsummarynow displays estimates for deviance with
MCMC output fits with R2jags
0.7.0:
- Fix bug in MCMCsummaryto do with Cholesky
decomposition and calculating Rhat.
- Speed up processing of MCMCsummaryfor certain object
types.
- Fix minor documentation errors in help files for several
functions.
- MCMCplotlabels now start at top and go down (more
intuitive).
- MCMCtracenow plots only the last 2000 iterations of
the posterior chains by default. The argument is now number of
iterations to be plotted, rather than the starting iteration to plot. As
such,- MCMCtraceargument- iter_st(start
iteration) changed to- iter(number of iterations from
end).
- Add horizargument toMCMCplot-
caterpillar plots can now be plotted to run vertically rather than
horizontally. Parameters are plotted left to right when plotted
vertically.
- Remove extended lines on axes for MCMCplot- axes lines
only goes to the end of ticks now.
0.6.3: