Skip to content

Commit

Permalink
styler
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 22, 2023
1 parent d85f59f commit 41a48f0
Showing 1 changed file with 25 additions and 29 deletions.
54 changes: 25 additions & 29 deletions tests/testthat/test-rstanarm.R
Original file line number Diff line number Diff line change
Expand Up @@ -108,23 +108,21 @@ m12 <- suppressWarnings(
test_that("stan_jm", {
skip_on_os("windows")
skip_on_os(c("mac", "linux", "solaris"), arch = "i386")
void <- capture.output(
{
m13 <- suppressMessages(
suppressWarnings(
stan_jm(
formulaLong = logBili ~ year + (1 | id),
dataLong = pbcLong,
formulaEvent = Surv(futimeYears, death) ~ sex + trt,
dataEvent = pbcSurv,
time_var = "year",
# this next line is only to keep the example small in size!
chains = 1, cores = 1, seed = 12345, iter = 1000, refresh = 0
)
void <- capture.output({
m13 <- suppressMessages(
suppressWarnings(
stan_jm(
formulaLong = logBili ~ year + (1 | id),
dataLong = pbcLong,
formulaEvent = Surv(futimeYears, death) ~ sex + trt,
dataEvent = pbcSurv,
time_var = "year",
# this next line is only to keep the example small in size!
chains = 1, cores = 1, seed = 12345, iter = 1000, refresh = 0
)
)
}
)
)
})
# expect_snapshot(model_info(m13))
})

Expand All @@ -143,21 +141,19 @@ Orange$age <- Orange$age / 100
# iter = 1000
# )

invisible(capture.output(
{
m15 <- suppressWarnings(
stan_mvmer(
formula = list(
logBili ~ year + (1 | id),
albumin ~ sex + year + (year | id)
),
data = pbcLong,
# this next line is only to keep the example small in size!
chains = 1, cores = 1, seed = 12345, iter = 1000, refresh = 0
)
invisible(capture.output({
m15 <- suppressWarnings(
stan_mvmer(
formula = list(
logBili ~ year + (1 | id),
albumin ~ sex + year + (year | id)
),
data = pbcLong,
# this next line is only to keep the example small in size!
chains = 1, cores = 1, seed = 12345, iter = 1000, refresh = 0
)
}
))
)
}))

test_that("model_info-stanreg-glm", {
expect_equal(
Expand Down

0 comments on commit 41a48f0

Please sign in to comment.