FunWithR / MonteCarlo

An R package for simulation studies.
33 stars 15 forks source link

MakeTable is throwing this error no matter what I try #11

Open hbunderw opened 1 month ago

hbunderw commented 1 month ago

Error in MakeTable(output = MC_result, rows = rows, cols = cols, digits = 2, : rows and cols must contain all parameter names unless the grid has only one value.

My function returns three values, so I expect to see three tables. It dumps only 1 and sends this error. Not sure what I'm doing wrong?

Thanks,

Brian Underwood

hbunderw commented 2 weeks ago

My problem is unique in that the function contains a call to JAGS. Sometime my initial values cause the function to crash. It would be great if the MonteCarlo() function could trap a crash error and write the results obtained to a data frame so I don't have to start all over. For example, I got it to run for 2 days solid before it crashed, but cannot recover the results it had accumulated.