powered by
Calculate model implied regressions for a sequence of time intervals based on a continuous time model fit from ctStanFit, for specified subjects.
ctStanDiscretePars(ctstanfitobj, subjects = "all", times = seq(from = 0, to = 10, by = 0.1), quantiles = c(0.025, 0.5, 0.975), plot = FALSE, ...)
Continuous time model fit from ctStanFit
ctStanFit
Either 'all', to take the average over all subjects, or a vector of integers denoting which subjects.
Numeric vector of positive values, discrete time parameters will be calculated for each.
Which quantiles to return. If plotting, specify 3 quantiles, the 2nd will be plotted as a line with 1 and 3 as uncertainty bounds.
Logical. If TRUE, plots output using ctStanDiscreteParsPlot instead of returning output.
ctStanDiscreteParsPlot
additional plotting arguments to control ctStanDiscreteParsPlot
# NOT RUN { ctStanDiscretePars(ctstantestfit,times=seq(.5,4,.1), plot=TRUE,indices='all') # }
Run the code above in your browser using DataLab