Skip to content
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

prepare_serodata add_age_mean_f = FALSE #121

Closed
2 of 4 tasks
davidsantiagoquevedo opened this issue Sep 18, 2023 · 1 comment
Closed
2 of 4 tasks

prepare_serodata add_age_mean_f = FALSE #121

davidsantiagoquevedo opened this issue Sep 18, 2023 · 1 comment
Labels
bug Something isn't working modelling serodata

Comments

@davidsantiagoquevedo
Copy link
Member

Please place an "x" in all the boxes that apply

  • I have the most recent version of linelist and R
  • I have found a bug
  • I have a reproducible example
  • I want to request a new feature

Hi, I was using the prepare_serodata() function setting add_age_mean_f = FALSE to avoid grouping the data by age_mean_f in the new stan models. In this case, R returns an error message. This occurs because the variable age_mean_f is not created, but it is still called out of the if sentence in line 60 dplyr::arrange(.data$age_mean_f).

data("veev2012")
veev2012t <- prepare_serodata(veev2012, add_age_mean_f = FALSE)

@ntorresd
Copy link
Member

This will be addressed further by #71.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working modelling serodata
Projects
None yet
Development

No branches or pull requests

2 participants