Learn R Programming

grofit (version 1.1.1-1)

ran.data: Function to generate example data for grofit

Description

The function calls the gompertz function to generate curves between zero and t and adds some random noise to the x- and y-axes. The three parameters given as input values will be slightly changed to produce different growth curves. The resulting datasets can be used to test the grofit function.

Usage

ran.data(d, t, mu = 1, lambda = 5, A = 15)

Arguments

d
Numeric value, number of data sets. If d is a vector, only the first entry is used.
t
Numeric value, number of time points per data set. If t is a vector, only the first entry is used.
mu
Numeric value, maximum slope. If mu is a vector, only the first entry is used.
lambda
Numeric value, lag-phase. If lambda is a vector, only the first entry is used.
A
Numeric value, maximum growth level. If A is a vector, only the first entry is used.

Value

time
numeric matrix of size dxt, each row represent the time points for which growth data is simulated and stored in each row of data.
data
data.frame of size dx(3+t), 1. column, character as an experiment identifier; 2. column: character, additional information about respecting experiment; 3. column: concentration of substrate of a compound under which the experiment is obtained; 4.-(3+t). column: growth data corresponding to the time points in time.

Details

The function generates two datasets according to the standard input of grofit and gcFit.

See Also

grofit.time, grofit.data