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

Add a warning when a component is empty #13

Open
DanChaltiel opened this issue Nov 25, 2024 · 0 comments
Open

Add a warning when a component is empty #13

DanChaltiel opened this issue Nov 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@DanChaltiel
Copy link
Owner

In the NIH example sample, the AAPC output is empty.
I don't know why this happens, but this should throw a warning.

library(tidyverse)
library(nih.joinpoint)
options(joinpoint_path="path/jpCommand.exe")
run_opt = run_options(model="ln", max_joinpoints=3, n_cores=3)
jp = joinpoint(nih_sample_data, x=year, y=rate, by=sex, se=se, run_opts=run_opt)
jp %>% map_dbl(nrow)
#          aapc            apc    data_export selected_model      perm_test         report 
#             0             12            105              3              9             12 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant