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

Changing threshold and adding functionallity if observables have NA #32

Merged
merged 5 commits into from
Oct 14, 2024

Conversation

SofiaOtero
Copy link
Contributor

@SofiaOtero SofiaOtero commented Oct 10, 2024

Changing the disease threshold so it reflects the disease threshold in one time step, when it then is used in the function it is multiplied with the k window parameter that is determined by the user. Fx if it disease_threshold = 20 and k = 5, then the disease_threshold that has to be surpassed in a 5 window time step is 100.

Additionally a functionallity to handle NA values is added. Earlier it was not possible to have NA values in observables. Now a variable na_percentage_allowed can be used to determine how many NA values each window can contain when performing the glm. A test has been added to test its functionallity.

Checklist

  • The PR passes all local unit tests
  • I have documented any new features introduced
  • If the PR adds a new feature, please add an entry in NEWS.md
  • A reviewer is assigned to this PR

@SofiaOtero SofiaOtero added good first issue Good for newcomers enhancement New feature or request labels Oct 11, 2024
Copy link
Contributor

@RasmusSkytte RasmusSkytte left a comment

Choose a reason for hiding this comment

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

Some feedback. Only related to the language used.

R/aedseo.R Outdated Show resolved Hide resolved
R/aedseo.R Outdated Show resolved Hide resolved
R/aedseo.R Outdated Show resolved Hide resolved
R/aedseo.R Outdated Show resolved Hide resolved
vignettes/aedseo_introduction.Rmd Outdated Show resolved Hide resolved
@SofiaOtero SofiaOtero merged commit 4dd00e3 into master Oct 14, 2024
13 checks passed
@SofiaOtero SofiaOtero deleted the change_disease_threshold branch October 14, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants