fitBB(df, varnames = list(ALEAF = "Photo", GS = "Cond", VPD = "VpdL", Ca =
"CO2S", RH = "RH"), gsmodel = c("BBOpti", "BBLeuning", "BallBerry"),
fitg0 = FALSE)
fit
, the object returned by nls
. If the user needs more information on the goodness of fit etc, please further analyze this object. For example, use the confint
to calculate confidence intervals on the fitted parameters.Photosyn
).
At the moment no batch utility is includes (like fitacis
), but this will likely appear in a future version of this package.# If 'mydfr' is a dataframe with 'Photo', 'Cond', 'VpdL' and 'CO2S', you can do:
myfit <- fitBB(mydfr, gsmodel = "BBOpti")
# Coefficients and a message:
myfit
# Coefficients only
coef(myfit)
Run the code above in your browser using DataLab