Hello,I'm doing a projection using bayesian age-period-cohort analysis with INLA.
Here's the code:
counts <- read.csv("/Users/ironjian/Downloads/ironjian\ 4/death_counts.csv", header = T)
pop <- read.csv("/Users/ironjian/Downloads/ironjian\ 4/total_popu.csv", header = T)
agegroup = c("35-39", "40-44", "45-49", "50-54", "55-59", "60-64", "65-69", "70-74","75-79", "80-84")
us.APC = APCList(counts, pop, gf=5, agelab=agegroup)
col <- c("grey20", "grey35", "grey50", "grey65", "grey75", "grey85")
ratesByAge(us.APC, scale=100000, age=seq(37,82,5), per=1990:2019, col=col)
us.res = BAPC(us.APC, predict=list(npredict=10, retro=TRUE))
sh: /Library/Frameworks/R.framework/Versions/4.1/Resources/library/INLA/bin/mac/64bit/inla: Permission denied
Error in inla.inlaprogram.has.crashed() :
The inla-program exited with an error. Unless you interupted it yourself, please rerun with verbose=TRUE and check the output carefully.
If this does help; please contact the developers at <he...@r-inla.org>.What's the problem?
Thanks , sincerely looking forward to your reply.