- Handle
constant_item = FALSE
correctly inwrangle()
- Bugfix: group order could be scrambled in
ZZ
andXX
- Bugfix: adjusted trial and success counts (
n_vec
,s_vec
), after calculation, could be associated with the wrong group names - Switch to numeric time variable in dgirt output
- Handle item variables (defensively) as follows:
- A numeric item variable with two unique values or an ordered factor item variable with two observed levels represents a binary choice in which the higher value or level is "success" and the lower value or level "failure"
- Generally, numeric and ordered-factor item variables represent ascending ordinal choices
- Other classes of item variable (e.g. factor, character) result in an error
- Print messages explaining the handling of each item variable
- Remove dependency on
mcgv
inplot_means()
- Bugfix: mean item outcomes could be calculated incorrectly, inflating success counts toward trial counts.
Version bump to 0.0.10.
- Functionality:
- Apply more descriptive names to
dgirt()
results using the variable names originally passed towrangle()
and the levels of factors. poststratify()
is safer and more flexible. It takes new argumentsstrata
,groups
, andcheck_proportions
; see the documentation.- Specify the algorithm for CmdStan to use.
dgirt()
passes new argumentoptimize_algorithm
to CmdStan ifmethod = "optimize"
; one of"lbfgs"
(the default),"bfgs"
and"newton"
.
- Apply more descriptive names to
- Documentation:
- Switch to a README.Rmd that includes the "Getting Started" vignette content and drop the vignette.
- Functions renamed:
run_dgirt()
->dgirt()
format_dgirt()
->wrangle()
- New and renamed datasets:
rstan_output
: example ofdgirt()
output formethod = "rstan"
optimize_output
: example ofdgirt()
output formethod = "optimize"
states
->state_opinion
state_targets
andtargets
->state_demographics
- Under the hood:
- Switch to assertthat package from ad-hoc
stop()
calls - Speed up
wrangle()
- Bugfixes
- Switch to assertthat package from ad-hoc