validate_drift_dm {dRiftDM} | R Documentation |
Validate a DDM object
Description
Performs basic checks to ensure everything is as expected with the model. This function should be called whenever modifying a ddm object!
Usage
validate_drift_dm(drift_dm_obj)
Arguments
drift_dm_obj |
the ddm object |
Details
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 dataThe 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).
Value
the unmodified ddm object, after it passed all checks