Nothing
## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## -----------------------------------------------------------------------------
library(skipTrack)
## -----------------------------------------------------------------------------
set.seed(1)
#Simulate data
dat <- skipTrack.simulate(n = 100, model = 'skipTrack', skipProb = c(.75, .2, .05))
names(dat)
## ----fig.align='center', fig.width = 7----------------------------------------
#Histogram of observed outcomes
hist(dat$Y, breaks = 10:150)
## -----------------------------------------------------------------------------
ft <- skipTrack.fit(Y = dat$Y, cluster = dat$cluster,
reps = 1000, chains = 4, useParallel = FALSE)
## ----fig.align='center', fig.width = 7, fig.height=7--------------------------
skipTrack.diagnostics(ft, param = 'cijs')
## ----fig.align='center', fig.width = 7, fig.height=7--------------------------
plot(ft)
## ----eval=FALSE---------------------------------------------------------------
# summary(ft)
## ----echo = FALSE-------------------------------------------------------------
summary(ft)
## ----eval = FALSE-------------------------------------------------------------
# summary(ft, burnIn = 500)
## ----echo = FALSE-------------------------------------------------------------
summary(ft, burnIn = 500)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.