Ok, so unfortunately, installing gfortran did not seem to work; although I realized I have Mojave, it did seem to install and I added the Makevars file to the .R/ directory & restarted RStudio. This is what I get when running a sample model (see attached). error.txt (35.3 KB)
the cmdstan seems to work, including with brm_multiple!! :) Or at least the sampling started and I got normal-ish looking output, however, I get this error:
Fitting imputed model 18
Running MCMC with 1 chain...
Chain 1 WARNING: No variance estimation is
Chain 1 performed for num_warmup < 20
Chain 1 Iteration: 1 / 2 [ 50%] (Warmup)
Chain 1 Iteration: 2 / 2 [100%] (Sampling)
Chain 1 finished in 0.0 seconds.
Start sampling
Error in read_cmdstan_csv(self$output_files(), variables = "", sampler_diagnostics = if (!fixed_param) c("treedepth__", :
Assertion on 'files' failed: File does not exist: '/d/q1/7055912.1.linux01.q/RtmpVF1H0i/file36a753b338-202103051035-1-58da21.csv'.
Calls: brm_multiple -> <Anonymous> -> value.Future -> signalConditions
In addition: There were 18 warnings (use warnings() to see them)
Execution halted
I had 30 imputed datasets, so I’m not sure why this happened just over halfway through. Do you know what this error is? Thank you so much.
I am in the process of downloading xcode on my computer and looking for the Mojave gfortran, which I will try after my classes.
I am not sure how to know whether I am on a network disc or not, however, I looked and the file that R is telling me doesn’t exist does indeed exist. I re-ran the model, got this error:
Error in read_cmdstan_csv(self$output_files(), variables = "", sampler_diagnostics = if (!fixed_param) c("treedepth__", :
Assertion on 'files' failed: File does not exist: '/d/q1/7056309.1.linux01.q/TMP/Rtmp48GraG/file755ca5e6a3c-202103051304-1-804455.csv'.
thank you, I will do that now! Do you think the issue on the server is something server-specific? I’m thinking I should reach out to their IT department …
I personally have had lots of problems using networked discs when doing computations so all prototyping I always do on my laptop or on a cluster where all discs are local.
Thank you so much again for all of your help. So I ended up getting brms_multiple to work over the server with sample data from the mice package (the nhanes dataframe). The model runs fine, although I do get the following error, repeated five times (for the five imputed datasets):
1: UNRELIABLE VALUE: Future (‘<none>’) unexpectedly generated random numbers without specifying argument 'seed'. There is a risk that those random numbers are not statistically sound and the overall results might be invalid. To fix this, specify 'seed=TRUE'. This ensures that proper, parallel-safe random numbers are produced via the L'Ecuyer-CMRG method. To disable this check, use 'seed=NULL', or set option 'future.rng.onMisuse' to "ignore".
However, when I use the brms_multiple on my data, I get the strange error that it can’t find a file all of a sudden:
Error in read_cmdstan_csv(self$output_files(), variables = "", sampler_diagnostics = if (!fixed_param) c("treedepth__", :
Assertion on 'files' failed: File does not exist: '/d/q1/7062827.1.linux01.q/TMP/RtmpbGh2A3/file6075feb6a64-202103081019-1-51f92d.csv'.
And interestingly, I get this same error on the nhanes data example if I specify more than 1 core in the brms_multiple command.
I’m emailing the IT department for the server, but not sure if you have any more thoughts on this (or know about the error associated with setting the seed?) Thank you!!