Skip to content

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

Merged
merged 2 commits into from
Apr 9, 2025
Merged

Deal with lnr models #1041

merged 2 commits into from
Apr 9, 2025

Conversation

strengejacke
Copy link
Member

No description provided.

@strengejacke strengejacke merged commit 5e638cb into main Apr 9, 2025
17 of 23 checks passed
@strengejacke strengejacke deleted the handle_lnr branch April 9, 2025 18:15
@@ -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) {
Copy link
Member

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)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or is_rtchoice

Copy link
Member Author

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?

Copy link
Member Author

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"),
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants