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

Assistance with Predictions Using PLNmodels 1.2.1 #139

Open
ivangalvan opened this issue Oct 4, 2024 · 0 comments
Open

Assistance with Predictions Using PLNmodels 1.2.1 #139

ivangalvan opened this issue Oct 4, 2024 · 0 comments
Assignees

Comments

@ivangalvan
Copy link

Hello,

I am encountering differences in predictions when using the predict() function compared to the myPLN$fitted object. Here is a small reproducible example:

library(PLNmodels)
data(trichoptera)
trichoptera <- prepare_data(trichoptera$Abundance, trichoptera$Covariate)

myPLN <- PLN(Abundance ~ 1, data = trichoptera)

new_predictions = predict(myPLN,newdata = trichoptera)

plot(myPLN$fitted,new_predictions)

I would like to make predictions on both training and test sets and ensure that I am correctly using the predict() function for the test set. Could you please assist me with this issue? I am currently using PLNmodels_1.2.1.

Thank you for your help.

Best regards,
Ivan

@mahendra-mariadassou mahendra-mariadassou self-assigned this Oct 7, 2024
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