valPrep | R Documentation |
Adds a column to the data.table/data.frame with a unique year and field descriptor by concatenating year and field, separated by a '.', corrects the experimental variable values back to the observed by reversing the centering. If the data was not centered there is no change. Removes missing values from the response variable and predicted response variable columns.
valPrep(dat, respvar, expvar)
dat |
Data.table with the data to check validity of parameters in. Typically the validation data that the model will be tested on. |
respvar |
Character, the response variable of interest. |
expvar |
Character, the experimental variable of interest. |
Updated 'parm_df' table.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.