relsa | R Documentation |
The relsa
function calculates a composite relative severity score based on normalized
differences. Further, the values are regularized with a reference set to estimate relative
severity.
relsa(set, bsl, a = 1, drop = NULL, turnvars = NULL, relsaNA = NA)
set |
dataset sample data frame |
bsl |
reference or baseline data (must be in RELSA format, see relsa_load) |
a |
unique animal index in data set |
drop |
character vector of variables to drop |
turnvars |
variables with inverted development under severity (i.e. temperature might rise or drop depending on the actual animal model) |
relsaNA |
codes how to handle NaN values during calculations (default is NA) |
relsa
list with RELSA results (differences and weights plus RELSA score)
## Not run: RELSA <- relsa(set=testset, bsl, a=1, drop=c("bw","score"), turnvars="temp") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.