rescale.link: Rescale data depending on the link function provided

Description Usage Arguments Value

View source: R/predict.functions.R

Description

Rescale data depending on the link function provided

Usage

1
rescale.link(x, direction = "link", link = "logit")

Arguments

x

A numeric vector of data to be rescaled

direction

Can take either "link" to convert data to a particular scale as defined by the link function, or "natural" to return it to the natural scale.

link

A string indicating the link function to use in the model. Can take any link function defined within JAGS (e.g. "logit", "log", "probit", "cloglog") or be assigned the value "identity" for and identity link function. If left as NULL the link function will be automatically assigned based on the likelihood.

Value

A rescaled numeric vector


MBNMAdose documentation built on Sept. 13, 2020, 5:08 p.m.