dummy-link

StanDataFrames

This package is deprecated.

Readme

StanDataFrames

Build Status

Coverage Status

codecov.io

Introduction

StanDataFrames generates a nchains DataFrames from the cmdstan generated sample files.

As in above example:

... (snipped)

  stanmodel = Stanmodel(num_samples=1200, thin=2, name="bernoulli", 
    model=bernoullimodel, output_format=:dataframe);

  rc, dfa, cnames = stan(stanmodel, observeddata, ProjDir, diagnostics=false,
    CmdStanDir=CMDSTAN_HOME);

... (snipped)

It is also possible to convert after the fact:

... (snipped)

  stanmodel = Stanmodel(num_samples=1200, thin=2, name="bernoulli", 
    model=bernoullimodel);

  rc, sim, cnames = stan(stanmodel, observeddata, ProjDir, diagnostics=false,
    CmdStanDir=CMDSTAN_HOME);
    
  @test 0.1 <  mean(sim[:, 8, :]) < 0.5
  
  dfa = convert_a3d(sim, cnames, Val(:dataframe))

... (snipped)

First Commit

05/29/2018

Last Touched

5 months ago

Commits

53 commits

Used By: