Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

stanWplot

Runs stan, and plots sampling information while sampling.


Description

Runs stan, and plots sampling information while sampling.

Usage

stanWplot(object, iter = 2000, chains = 4, ...)

Arguments

object

stan model object

iter

Number of iterations

chains

Number of chains

...

All the other regular arguments to stan()

Details

On windows, requires Rtools installed and able to be found by pkgbuild::rtools_path()

Examples

if(w32chk()){
library(rstan)
#### example 1 
scode <- "
parameters {
  real y[2]; 
} 
model {
  y[1] ~ normal(0, .5);
  y[2] ~ double_exponential(0, 2);
} 
"
#Uncomment the following lines -- launches rscript not compatible with cran check.
#sm <- stan_model(model_code = scode)
#fit1 <- stanWplot(object = sm,iter = 100000,chains=2,cores=1)
}

ctsem

Continuous Time Structural Equation Modelling

v3.4.3
GPL-3
Authors
Charles Driver [aut, cre, cph], Manuel Voelkle [aut, cph], Han Oud [aut, cph], Trustees of Columbia University [cph]
Initial release
2021-04-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.