BNPR(data, lengthout = 100, pref = FALSE, prec_alpha = 0.01,
prec_beta = 0.01, beta1_prec = 0.001, fns = NULL, log_fns = TRUE,
simplify = TRUE, derivative = FALSE, forward = TRUE)BNPR_PS(data, lengthout = 100, prec_alpha = 0.01, prec_beta = 0.01,
beta1_prec = 0.001, fns = NULL, log_fns = TRUE, simplify = TRUE,
derivative = FALSE, forward = TRUE)
phylo object or list containing vectors of coalescent
times coal_times, sampling times samp_times, and number
sampled per sampling time n_sampled.fns.result contains the INLA output, data contains the
information passed to INLA, grid contains the grid end points,
x contains the grid point centers, effpop contains a vector
of the posterior median effective population size estimates,
effpop025 and effpop975 contain the 2.5th and 97.5th
posterior percentiles, summary contains a data.frame of the
estimates, and derivative (if derivative = TRUE) contains a
data.frame summarizing the log-derivative.BNPR_PS: Uses preferential sampling model.
data("NY_flu")
if (requireNamespace("INLA", quietly = TRUE)) {
res = BNPR(NY_flu)
plot_BNPR(res)
}
Run the code above in your browser using DataLab