Description Usage Arguments Value
View source: R/Other_Functions.R
given the dataset, shifts some of the population, and then performs a logratio transformation
1 | predict_logratio(df, model, shift = 0.5, type = -3)
|
df |
the data used to create the model before logratio was applied |
model |
the model using logratios to make predictions on |
shift |
how much of the population to shift from one category to another |
type |
a number of value -3, -2, -1, 1, 2, or 3 that tells the function how to shift the population. Use value 0 to check |
the change in the target variable–homicides, suicides, or unintentoinal deaths–from applying the shift
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.