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

Keeping objects within latent_individual class #272

Closed
athowes opened this issue Sep 2, 2024 · 3 comments
Closed

Keeping objects within latent_individual class #272

athowes opened this issue Sep 2, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@athowes
Copy link
Collaborator

athowes commented Sep 2, 2024

In #52 I've found that after making some alterations to an object of class latent_individual that I need to recall as_latent_individual in order for epidist::epidist to work:

obs_prep_reduced <- obs_prep |>
  dplyr::group_by(district) |>
  dplyr::mutate(n = dplyr::n()) |>
  dplyr::filter(n > 30) |>
  dplyr::select(-n) |>
  dplyr::ungroup()

obs_prep_reduced <- as_latent_individual(obs_prep_reduced)

This doesn't seem to be ideal. Probably something easy to fix here.

@athowes athowes added bug Something isn't working low labels Sep 2, 2024
@seabbs
Copy link
Contributor

seabbs commented Sep 2, 2024

Have a look at the class system in scoringutils as I think this has been resolved there by @Bisaloo

@athowes
Copy link
Collaborator Author

athowes commented Sep 17, 2024

Maybe can be fixed by #329.

@athowes
Copy link
Collaborator Author

athowes commented Nov 5, 2024

Closing as duplicate of #399.

@athowes athowes closed this as completed Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants