Description Usage Arguments Details Value
Based on plot-level forest attributes and correpsonding ALS metrics, this function train predictive models based on a modeling approach (currently only random forest is implemented) and assess models accuracy using k-folds cross-validation
1 | makeModels(dat, attNames, preds, k = 5, titles, saveModel, saveFigure, outdir)
|
dat |
data.frame. Need to contain both forest attributes and ALS metrics |
attNames |
Character. Name of attrbiutes to be modeled |
preds |
Character. Name of ALS metrics to be included |
k |
Numeric. Number of folds to be created for k-folds cross-validation. Default is 5 |
titles |
List containing titles of scatterplots. Elements must be named according to attNames. If missing, scatterplots won't have any title |
saveModel |
Logical. If TRUE, models will be saved in outdir in .rds format. Default if FALSE |
saveFigure |
Logical. If TRUE, save scatterplots in outdir. Currently save a pdf file of 4 inches width and 4 inches height |
outdir |
Character. Path to exisiting directory where models and scatterplots will be saved if wanted |
Further details
A list with one element per modeled forest attribute and one element containing accuracy measures (R2, RMSE and bias).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.