Description Usage Arguments Value See Also Examples
View source: R/computeResult.R
Given renewal rates for different isotopic probes over time and normal distributions of isotopic values over time, resulting normal distributions of the isotopic probes are calculated.
1 2 | computeResult(data, timeVars, boneVars = NULL, meanVar, sdVar,
cor = 0.5)
|
data |
A dataframe specifying the renewal rates of different probes for each time interval. The renewal rates should be between 0 and 100 (percentages). The dataframe should include a column specifying a time-index (e.g. 1, 2, 3, ...) as well as columns for the different bones. Furthermore, the dataframe should contain the mean and sd values for each time interval. |
timeVars |
A character string specifying the name of the column indicating the time. |
boneVars |
A vector of character strings indicating the relevant variables containing the renewal rates of bones and teeth. |
meanVar |
A character string specifying the name of the column indicating the mean values of the isotopic probes over time. |
sdVar |
A character string specifying the name of the column indicating the standard deviation of the isotopic probes over time. |
cor |
The temporal correlation between neighbouring time points. Defaults to 0.5 |
A data.frame containing the resulting mean and standard deviation for each bone/tooth as well as the covariances.
estimateIntervals
1 2 3 4 5 6 7 8 9 10 11 12 13 | testDat <- data.frame(
t = 1:3,
bone = c(100, 50, 0),
mean = c(1, 3, 50),
sd = c(1, 3, 50)
)
computeResult(
data = testDat,
timeVars = "t",
boneVars = "bone",
meanVar = "mean",
sdVar = "sd"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.