View source: R/fit_photosynthesis.R
| fit_photosynthesis | R Documentation | 
Fit photosynthetic models with gas-exchange data
fit_photosynthesis(
  .data,
  .photo_fun,
  .model = "default",
  .vars = NULL,
  .method = "ls",
  ...,
  quiet = FALSE,
  brm_options = NULL
)
.data | 
 A data frame containing plant ecophysiological data. See   | 
.photo_fun | 
 A character string of photosynthesis function to call. One of:   | 
.model | 
 A character string of model name to use. See   | 
.vars | 
 A list to rename variables in .data. See   | 
.method | 
 A character string of the statistical method to use: 'ls' for least-squares and 'brms' for Bayesian model using   | 
... | 
 Additional arguments passed to specific models. See specific help pages for each type of photosynthetic model: 
  | 
quiet | 
 Flag. Should messages be suppressed? Default is FALSE.  | 
brm_options | 
 A list of options passed to   | 
A fitted model object
 class 'lm' or 'nls' if method = 'ls'
 class 'brmsfit' if method = 'brms'
This function will fit models to data but several methods require post-processing to extract meaningful parameter estimates and confidence intervals. See vignettes for further explanation and examples.
 Light-response curves: vignette("light-response", package = "photosynthesis")
 Light respiration: vignette("light-respiration", package = "photosynthesis")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.