COVID19_CFR_submission icon indicating copy to clipboard operation
COVID19_CFR_submission copied to clipboard

doesnt recognise x as a list in run_mcmc

Open Dylanb021 opened this issue 2 years ago • 1 comments

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?

Dylanb021 avatar Oct 31 '22 15:10 Dylanb021

I am not too familiar with r as i am using it for my dissertation, so any help would be appreciated

Dylanb021 avatar Oct 31 '22 15:10 Dylanb021