HannaMeyer / CAST

Developer Version of the R package CAST: Caret Applications for Spatio-Temporal models
https://hannameyer.github.io/CAST/
108 stars 30 forks source link

Supplying manual variable weights to aoa doesn't work? #20

Closed barbmuhling closed 2 years ago

barbmuhling commented 3 years ago

Thank you for the great package!

I am attempting to run aoa without specifying a model (just newdata and weights). However, I'm getting the same results whether I supply a table of weights or not. Reading through the code, it seems as though if weight cannot be extracted from a trained model early on, it gets assigned as an object of class error, over-writing any table of weights initially supplied to the function. Do I have this right?

daniel-althoff commented 2 years ago

I experienced the same issue.. couldn't figure a work around

HannaMeyer commented 2 years ago

Sorry for the delay! Should be fixed now. Please try.