- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 65
Closed
Labels
featureNew feature or requestNew feature or request
Description
I'm opening this as a reference issue/reminder to myself to add a log_prob method to CmdStanFit once the PR has been merged.
As for the implementation/design, I'm thinking of simply mirroring the method arguments:
mod <- cmdstan_model(...)
samp <- mod$sample(...)
log_prob_output <- samp$log_prob(constrained_pars=..., unconstrained_pars=..., jacobian_adjust=TRUE)
Where the method would simply write the constrained_pars/unconstrained_pars to a .json file and call the exe_file.
The return (log_prob_output) would the data.frame/tibble from reading in the generated csv (i.e., no formatting changes).
How does that sound? Is there any other functionality that would be needed for feature parity with rstan in this case?
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or request