Skip to content

Commit

Permalink
add brms sample model with monotonic effects
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed May 29, 2024
1 parent 0e7ef8c commit 96ac05f
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: circus
Title: The Circus of Monsters
Version: 0.1.1
Version: 0.1.2
Authors@R:
c(person(given = "Dominique",
family = "Makowski",
Expand Down
24 changes: 24 additions & 0 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -1373,6 +1373,30 @@



#' brms_mo1
#'
#' Model of class brmsfit
#' @examples
#' \dontrun{
#' income_options <- c("below_20", "20_to_40", "40_to_100", "greater_100")
#' income <- factor(
#' sample(income_options, 100, TRUE),
#' levels = income_options, ordered = TRUE
#' )
#' mean_ls <- c(30, 60, 70, 75)
#' ls <- mean_ls[income] + rnorm(100, sd = 7)
#' dat <- data.frame(income, ls) # fit a simple monotonic model
#' brms_mo1 <- brm(ls ~ mo(income), data = dat)
#' }
"brms_mo1"








#' brms_meta_1
#'
#' Model of class brmsfit
Expand Down
Binary file added data/brms_mo1.rda
Binary file not shown.
29 changes: 29 additions & 0 deletions man/brms_mo1.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 96ac05f

Please sign in to comment.