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

Covariates #6

Open
schneiderpy opened this issue Aug 14, 2024 · 2 comments
Open

Covariates #6

schneiderpy opened this issue Aug 14, 2024 · 2 comments

Comments

@schneiderpy
Copy link

Is there a way to include covariates such as temperature?

@rafalab
Copy link
Owner

rafalab commented Aug 19, 2024

The R package does not provide a straight forward way of adding temperature. But, in principle, you can add temperature to the model for the expected counts $\mu_t$ (see page page of the Acosta and Irizarry paper). For example you can redefine it to be

$$ \mu_t = N_t \exp [ \alpha(t) + s(t) + w(t) + \beta_{temp} temp(t) ] $$

The rest of the model method should work the same. You could consider more complicated relationships than linear.

We are currently working on a project where we will have to incorporate temperature, but the code won't be ready for months.

@schneiderpy
Copy link
Author

Thank you Rafael for your quick reply.

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

No branches or pull requests

2 participants