byIndv4Intvl_GRsDiff | R Documentation |
data.frame
in long format by differencing the values for
a response within the interval.Using the values of the responses, calculates the specified combination of the Absolute Growth Rates using differences (AGR), the Proportionate Growth Rates (PGR) and Relative Growth Rates using log differences (RGR) between two nominated time points.
byIndv4Intvl_GRsDiff(data, responses,
individuals = "Snapshot.ID.Tag", times = "DAP",
which.rates = c("AGR","PGR","RGR"),
suffices.rates=NULL, sep.rates = ".",
start.time, end.time,
suffix.interval, sep.suffix.interval = ".")
data |
A |
responses |
A |
individuals |
A |
times |
A |
which.rates |
A |
suffices.rates |
A |
sep.rates |
A |
start.time |
A |
end.time |
A |
suffix.interval |
A |
sep.suffix.interval |
A |
The AGR
is calculated as the difference between the values of
response
at the end.time
and start.time
divided by the
difference between end.time
and start.time
.
The PGR is calculated as the ratio of response
at the end.time
to that at start.time
and the ratio raised to the power of the
reciprocal of the difference between end.time
and start.time
.
The RGR
is calculated as the log
of the PGR and so is equal to
the difference between the logarithms of response
at the end.time
and start.time
divided by the difference
between end.time
and start.time
.
A data.frame
with the growth rates.
The name of each column is the concatenation of (i) one of
responses
, (ii) one of AGR
, PGR
or RGR
,
or the appropriate element of suffices.rates
, and (iii)
suffix.interval
, the three components being separated by
full stops.
Chris Brien
byIndv4Intvl_GRsAvg
, byIndv4Intvl_WaterUse
, getTimesSubset
, GrowthRates
,
byIndv4Times_SplinesGRs
, splitContGRdiff
data(exampleData)
sPSA.GR <- byIndv4Intvl_GRsDiff(data = longi.dat,
responses = "sPSA", times = "DAP",
which.rates = c("AGR","RGR"),
start.time = 31, end.time = 35,
suffix.interval = "31to35")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.