extract_resp | R Documentation |
brmsfit
objectExtract formula variables from a brmsfit
object
extract_resp(x)
x |
A |
A list of extracted formula variables for use by other bgamcar1
functions
library("brms")
seed <- 1
data <- read.csv(paste0(system.file("extdata", package = "bgamcar1"), "/data.csv"))
fit <- fit_stan_model(
paste0(system.file("extdata", package = "bgamcar1"), "/test"),
seed,
bf(y | cens(ycens, y2 = y2) ~ 1),
data,
prior(normal(0, 1), class = Intercept),
car1 = FALSE,
save_warmup = FALSE,
chains = 3
)
extract_resp(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.