Convert expected value parameters

Share:

Description

For NDF assay data it is more convenient to parameterize the asymptotic regression model in terms of the expected values at three time points. This function provides the fitted values at the indicated times according to the values of the expected values at three specific times - 24, 36 and 48 hours.

Usage

1
Grho(Time, alpha, beta, gamma)

Arguments

Time

numeric vector of times at which the fitted values are to be evaluated.

alpha

Fitted value at 24 hr.

beta

Fitted value at 36 hr.

gamma

Fitted value at 48 hr.

Value

A numeric vector, of the same length as the Time argument, of fitted values.

Examples

1
2
3
4
Grho(c(24, 30, 48), 28, 35, 38)
xvals <- 20:50
plot(xvals, Grho(xvals, 28, 35, 38), type = "l",
     xlab = "Time (hr.)", ylab = "NDF digestion (% of NDF)")

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.