Cmdstanr: Import and use models made with brms or rstanarm

Created on 15 Dec 2019  路  8Comments  路  Source: stan-dev/cmdstanr

I think this basically means support supplying the model as a string.

This one was suggested by @stevebronder, just putting it out there so it doesnt get missed.

feature

Most helpful comment

why not add a mechanism that lets the user create a named file somewhere and save the model?

I am fine with that. Will wait for feedback before proceeding.

All 8 comments

why does this require model as a string? why not add a mechanism that lets the user create a named file somewhere and save the model?

@jgabry opinions?
I know that we can add in features to allow this, but it's bad practice - the compiler works from files - we should make it easy for the user to see and find these files. not r-thonic?

why not add a mechanism that lets the user create a named file somewhere and save the model?

I am fine with that. Will wait for feedback before proceeding.

That makes sense to me!

CmdStanPy allows you to specify the compiled exe file without corresponding stan file - this would also be a way to run CmdStanR and BRMS models

that is, when instantiating a CmdStanModel object, constructor takes either a stan_file or an exe_file arg - can also take both, and if exe file is newer than stan file, will skip compile step.

that also sounds good!

Also see https://github.com/paul-buerkner/brms/issues/891
Will help Paul with this one.

Was this page helpful?
0 / 5 - 0 ratings