-
-
Notifications
You must be signed in to change notification settings - Fork 40
Deal with lnr models #1041
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deal with lnr models #1041
Conversation
@@ -945,7 +946,7 @@ get_predicted.phylolm <- function(x, | |||
stringsAsFactors = FALSE | |||
) | |||
# make sure we have the correct name for the "Response column" | |||
if (is_wiener) { | |||
if (is_wiener || is_lnr) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could have something more generic than is_lnr, like is_ssm
("sequential sampling models", the official name of decision making models)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or is_rtchoice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, so this would also identify your other custom models? Which would you prefer, are all models about reaction time and discrete choices?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also change is_wiener
to the general name
@@ -419,6 +420,7 @@ | |||
is_ftest = is_ftest, | |||
is_meta = is_meta, | |||
is_wiener = inherits(x, "brmsfit") && fitfam == "wiener", | |||
is_lnr = inherits(x, "brmsfit") && fitfam == "custom" && identical(brms_custom_name, "lnr"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here we can have is_rtchoice
, and we will check for various models (LNR, LBA, ...) that will all behave the same (by having even-odd iterations)
Wiener behaves differently (negative RTs) so we need to deal separately
No description provided.