diff --git a/DESCRIPTION b/DESCRIPTION index 060b3a5..2040e94 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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", diff --git a/R/data.R b/R/data.R index fb5b6c6..2885c5f 100644 --- a/R/data.R +++ b/R/data.R @@ -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 diff --git a/data/brms_mo1.rda b/data/brms_mo1.rda new file mode 100644 index 0000000..9593dd0 Binary files /dev/null and b/data/brms_mo1.rda differ diff --git a/man/brms_mo1.Rd b/man/brms_mo1.Rd new file mode 100644 index 0000000..1cd9cea --- /dev/null +++ b/man/brms_mo1.Rd @@ -0,0 +1,29 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/data.R +\docType{data} +\name{brms_mo1} +\alias{brms_mo1} +\title{brms_mo1} +\format{ +An object of class \code{brmsfit} of length 23. +} +\usage{ +brms_mo1 +} +\description{ +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) +} +} +\keyword{datasets}