predict_logratio: predict_logratio

Description Usage Arguments Value

View source: R/Other_Functions.R

Description

given the dataset, shifts some of the population, and then performs a logratio transformation

Usage

1
predict_logratio(df, model, shift = 0.5, type = -3)

Arguments

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

Value

the change in the target variable–homicides, suicides, or unintentoinal deaths–from applying the shift


cmpear/UnempDeaths documentation built on May 22, 2020, 6:50 a.m.