Description Usage Arguments Value Examples
View source: R/fit_BiasedDrift.R
plotsBiasDrift_Fit
will plot data and fit of biased drift model.
1 | plotsBiasDrift_Fit(fit_vals, max_x = 100)
|
fit_vals |
list produced by fitBiasedDrift containing amongst other things the MCMC chains. |
max_x |
Choose maximum value for the x axis (time) |
Return ggplot object with posterior plots.
1 2 3 4 5 6 7 | time_points = c(4, 7, 10, 14, 21)
WT_params = list(lambda = 0.1, N = 5, tau = 1)
x = simulateBiasedDriftData(WT_params$lambda, WT_params$N, WT_params$tau, Pr = 0.7, time_points, 8, 300)
fit_out = fitBiasedDrift(x, WT_params, time_points)
plotsConvergence_Biased(fit_out)
plotsBiasDrift_Fit(fit_out)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.