transform_output: Parameter transformation

transform_outputR Documentation

Parameter transformation

Description

Transforms parameters from the real scale on which they are estimated to the correct parameter-space scale using the appropriate link functions and covariate formulas

Usage

transform_output(GAIoutput, DF = data.frame(), provide_A = F)

Arguments

GAIoutput

The output of the fit_GAI function, a fitted model

DF

A data.frame containing rows of covariate values for which transformed parameter values should be obtained. It is important that the names of columns in this data.frame are identical to those that were specified in the options argument of the fit_GAI function. A blank data.frame is provided by default, which is assumed in a no covariate model.

provide_A

If TRUE, will also return the A matrix for the supplied. It should be noted that the A matrix this function returns is not scaled by site population totals, since these are unavailable for new data. points

Value

A named vector of parameters, on the parameter-space scale

Examples

fit_GAI(c(0, 0), example_data, "mixture") %>% transform_output(DF = example_data[1, ])

calliste-fagard-jenkin/GAI documentation built on July 26, 2022, 11:20 a.m.