validate_drift_dm | R Documentation |
Performs basic checks to ensure everything is as expected with the model. This function should be called whenever modifying a ddm object!
validate_drift_dm(drift_dm_obj)
drift_dm_obj |
the ddm object |
Checks:
the flex_prms_object via validate_flex_prms()
The prms_solve (that it is a named numeric vector
check_if_named_numeric_vector()
with the expected entries) and
that nt, nx make sense. This may adjust t_max if t_max is smaller than
max(RT) of the observed data
The solver string (only a single string and that it refers to something that is actually implemented). If im_zero, then check if dirac delta on 0.
checks that the list comp_funs only contains functions and that each function provides the expected arguments
If PDFs exist, checks the names, lengths and data type
Checks that log_like_val (if it exists) is a single numeric.
Checks the data type name structure of obs_data
Checks the b_coding (column, u_name_value and l_name_value).
the unmodified ddm object, after it passed all checks
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.