calc_error_relative_to_nontargets | R Documentation |
Given a vector of responses, and the values of non-targets, this function computes the error relative to each of the non-targets.
calc_error_relative_to_nontargets(data, response, nt_features)
data |
A |
response |
Character. The name of the column in |
nt_features |
Character vector. The names of the columns in |
A data.frame
with n*m rows, where n is the number of rows of data
and m is the number of non-target variables. It preserves all other columns
of data
, except for the non-target locations, and adds a column y_nt
,
which contains the transformed response error relative to the non-targets
data <- oberauer_lin_2017
data <- calc_error_relative_to_nontargets(data, "dev_rad", paste0("col_nt", 1:7))
hist(data$y_nt, breaks = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.