# NOT RUN {
data <- data.frame(
intStart = 0:5,
intEnd = 1:6,
bone1 = c(100, 50, 20, 10, 5, 2),
bone2 = c(100, 10, 5, 1, 1, 1),
tooth1 = c(0, 100, 0, 0, 0, 0),
tooth2 = c(0, 0, 100, 0, 0, 0)
)
y_mean <- c(-10, -7, -12, -9)
y_sigma <- c(2, 1.5, 2.5, 2.5)
fit <- estimateIntervals(renewalRates = data,
timeVars = "intStart",
boneVars = c("bone1", "bone2", "tooth1", "tooth2"),
isoMean = y_mean,
isoSigma = y_sigma)
print(fit)
plot(fit)
plotTime(fit)
# get estimates for specific time points
estimateTimePoint(fit, time = seq(0,5, by = 0.5))
# shift point estimation
plotTime(fit, plotShifts = TRUE, threshold = 0.5)
getShiftTime(fit, threshold = 0.5)
#Staying time estimation
estimatedStayTimes <- getSiteStayTimes(object = fit,
siteMeans = c(-8, -10),
siteSigma = c(1, 1.5))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab