Main function for invoking and object handling. E.Coli hygiene models will be used to predict hygiene quality on differnt scopes.
predict_quality(model, river_dir, output = "season") get_newdata(variables, river_dir) print_latest(model, newdata) get_latest_season(newdata)
model | stan_lm. A model of e.coli concentration in given river |
---|---|
river_dir | character. Path to river-data for up-to-date predictions. |
output | character. |
variables | character. A vector with all variables used in the model |
newdata | data.frame with physical data used in the model |
Returns a list of physical data and prediction and linpred from model
Returns a data.frame with the merged data found
get_newdata
: Internal Usage
print_latest
: Internal Usage
get_latest_season
: Internal Usage