Open a-difabio opened 2 years ago
Are you sure you have the latest version, which includes the fix #41 for #38? It went to CRAN on June 17.
I believe I am using the latest version of the package:
sessioninfo::package_info(pkgs = "multilevelmod", dependencies = FALSE)
#> package * version date (UTC) lib source
#> multilevelmod 1.0.0 2022-06-17 [1] CRAN (R 4.2.0)
Created on 2022-06-21 by the reprex package (v2.0.1)
In fact, I think that before fix #41 this same code would have thrown an error without predicting anything, while now the fitted workflow can be used to predict new values.
I am having trouble using the
tune::fit_resamples()
function on almer
model (from themultilevelmod
package). In particular, it looks like that when the predictions for the assessment set are calculated, the model doesn't properly account for all the possible combinations of grouping levels.I have included a reprex in which I show that the results of a
predict()
call on almer
object are different than the predictions obtained from afit_resamples()
call (usingcollect_predictions()
).Created on 2022-06-20 by the reprex package (v2.0.1)