View source: R/formatting_drift_dm.R
| summary.drift_dm | R Documentation |
drift_dm objectssummary and corresponding printing methods for objects of class drift_dm,
created by a call to drift_dm().
## S3 method for class 'drift_dm'
summary(object, ...)
## S3 method for class 'summary.drift_dm'
print(x, ..., round_digits = drift_dm_default_rounding())
object |
an object of class |
... |
additional arguments passed forward (currently not used). |
x |
an object of class |
round_digits |
integer, specifying the number of decimal places for rounding in the printed summary. Default is 3. |
summary.drift_dm() constructs a summary list with information about the
drift_dm object. The returned list has class summary.drift_dm and can
include the following entries:
class: Class vector of the drift_dm object.
summary_flex_prms: Summary of the flex_prms object in the model (see summary.flex_prms).
prms_solve: Parameters used for solving the model (see prms_solve).
solver: Solver used for generating model predictions.
b_coding: Boundary coding for the model (see b_coding).
obs_data: Summary table of observed response time data, if available,
by response type (upper/lower boundary). rows correspond to upper first
then lower responses; row names are prefixed by the boundary names from
b_coding. columns (all lower-case) are: min, 1st qu., median,
mean, 3rd qu., max, and n.
cost_function: Name (or descriptor) of the cost function used during estimation.
fit_stats: Fit statistics, if available. we return a named atomic
vector created via unlist(unpack_obj(calc_stats(..., type = "fit_stats"))).
estimate_info: Additional information about the estimation procedure.
print.summary.drift_dm() displays this summary in a formatted way.
summary.drift_dm() returns a list of class summary.drift_dm (see details
for the entries).
print.summary.drift_dm() returns invisibly the summary.drift_dm object.
# get a pre-built model for demonstration
a_model <- dmc_dm()
sum_obj <- summary(a_model)
print(sum_obj, round_digits = 2)
# more information is provided when we add data to the model
obs_data(a_model) <- dmc_synth_data # (data set comes with dRiftDM)
summary(a_model)
# fit indices are added once we evaluate the model
a_model <- re_evaluate_model(a_model)
summary(a_model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.