Learn R Programming

biogrowth (version 1.0.6)

cost_coupled_twosteps: Cost for the coupled model fitted in two-steps

Description

Cost for the coupled model fitted in two-steps

Usage

cost_coupled_twosteps(p, this_data, weight = NULL, known)

Value

vector of weighted residuals

Arguments

p

numeric vector (or list) of model parameters. Must have entries logC0, b and Tmin

this_data

tibble (or data.frame) of data. It must have one column named temp (temperature), one named lambda (specific growth rate; in ln CFU/TIME) and one named mu (specific growth rate; in ln CFU/TIME).

weight

type of weights to apply. Either NULL (no weights; default), sd (standard deviation) or mean (mean value).

known

vector of known model parameters