andrewcparnell / simmr

A stable isotope mixing model in R
https://andrewcparnell.github.io/simmr/
28 stars 8 forks source link

Error with the second type of model (ffvb) #55

Open sergeikharchenko opened 4 weeks ago

sergeikharchenko commented 4 weeks ago

Hello! The first function works well! But the second one creates an error. See below:

simmr_out <- simmr_mcmc(simmr_in) module glm loaded Compiling model graph Resolving undeclared variables Allocating nodes Graph information: Observed stochastic nodes: 660 Unobserved stochastic nodes: 15 Total graph size: 1109 Initializing model |**| 100% |**| 100% simmr_out_ffvb <- simmr_ffvb(simmr_in) Error: Not compatible with requested type: [type=list; target=double].

I tried to run the function simmr_ffvb line by line. And possibly the problem with the inner function here:

run_VB_cpp(lambdastart, K, n_tracers, beta_prior, concentration_means, source_means, correction_means, correction_sds, source_sds, y, ffvb_control$S, ffvb_control$P, ffvb_control$beta_1, ffvb_control$beta_2, ffvb_control$tau, ffvb_control$eps_0, ffvb_control$t_W, solo)

At least, I didn't have any troubles before this.

Thanks for new interesting package!)