Learn R Programming

phenolocrop (version 0.0.4)

phenololine: Return time-series curve given the time-series model and parameter values

Description

phenololine function returns the predicted values given the model name and model parameters.

Usage

phenololine(param, x, method)

Value

phenololine function returns the trait values given x.

Arguments

param

Vector of model parameter values.

x

Vector of time (e.g. vector of dates).

method

Character name of the time-series model. Please use "logisLateDicr" or "doubleLogis".

Details

If method = "logisLateDicr", param should be the vector of c(K, d0, r, a, d1). If method = "doubleLogis", aram should be the vector of c(r2, r3, d2, d3, ymax).

Examples

Run this code
library(phenolocrop)
y <- riceCH_eg |>
   logisLateDicr("x", "height") |>
   phenololine(x = 1:160, method = "logisLateDicr")
plot(1:160, y, type = "l")

Run the code above in your browser using DataLab