COVID19_CFR_submission
COVID19_CFR_submission copied to clipboard
doesnt recognise x as a list in run_mcmc
when i run the script "run_mcmc_cfr_all" it doesnt recognise x as a list x <- c(0, n_age_bands, death_observation_censoring, min(data[data$location == "Outside", "nici"]), deaths_x, deaths_n, repat_x, repat_n, WHO_observed_deaths, WHO_observed_cases, observed_deaths, data$cases, as.numeric(data$age_groups), data$date - min(data$date), as.numeric(data$location == "Wuhan"), data$nici)
mcmc_output <- run_mcmc(data =x, df_params = df_paramsRR, loglike = lL_plane, logprior = lP_plane, burnin = burnin, samples = samples, chains = 1)
is it becasue i am not using the correct drjacoby package or am i missing a package? how do i go about running all the code?
I am not too familiar with r as i am using it for my dissertation, so any help would be appreciated