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

View source: R/predict.functions.R

rescale.linkR Documentation

Rescale data depending on the link function provided

Description

Rescale data depending on the link function provided

Usage

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"), be assigned the value "identity" for an identity link function, or be assigned the value "smd" for modelling Standardised Mean Differences using an 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 Aug. 8, 2023, 5:11 p.m.