KWB-R / fhpredict

R Package for the Project Flusshygiene
https://kwb-r.github.io/fhpredict
MIT License
2 stars 0 forks source link

Error in build_and_validate_model() #52

Open hsonne opened 4 years ago

hsonne commented 4 years ago

Error when running build_and_validate_model():

Fehler in lmtest::bptest(model) : 
  the auxiliary variance regression requires at least an intercept and a regressor
Zusätzlich: Warnmeldungen:
1: attempting model selection on an essentially perfect fit is nonsense 

Code to reproduce the error:

name <- "spot-data_user-9_spot-26_2020-02-04.RData"
file <- system.file("extdata/testdata", name, package = "fhpredict")
spot_data <- kwb.utils::loadObject(file, "spot_data")
set.seed(1)
result <- fhpredict:::build_and_validate_model(spot_data)