# Using simulated data ------------------------------------------------------
set.seed(19)
dat <- raphylo(100)
dat <- rdrop_annotations(dat, .4)
# Computing Estimating the parameters
ans <- aphylo_mle(dat ~ psi + mu_d + eta + Pi)
ans
# Plotting the path
plot(ans)
# Computing Estimating the parameters Using Priors for all the parameters
mypriors <- function(params) {
dbeta(params, c(2, 2, 2, 2, 1, 10, 2), rep(10, 7))
}
ans_dbeta <- aphylo_mle(dat ~ psi + mu_d + eta + Pi, priors = mypriors)
ans_dbeta
Run the code above in your browser using DataLab