birtm: Bayesian item response theory modeler

Description Usage Arguments Value Examples

View source: R/birtm.R

Description

Fits a bayesian IRT model.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
birtm(
  data,
  formula,
  prior = NULL,
  cores = 4,
  file = NULL,
  check_prior_influence = FALSE,
  preparing_bf = FALSE,
  add_waic = TRUE,
  add_loo = TRUE,
  refit = FALSE,
  variable_specifications = NULL,
  model_specifications = NULL,
  ...
)

Arguments

data

Data in long format (i.e. composed with birtms::compose_data)

formula

A brms::formula (i.e. builded with birtms::build_formula)

prior

Bayesian priors in format of brms::prior

cores

Number of CPU cores used to fit the model

file

Path and name the fit object is saved for later reusage (will be loaded automatically if already exists)

check_prior_influence

Boolean

preparing_bf

Boolean

add_waic

Boolean

add_loo

Boolean

refit

Boolean

variable_specifications

A named list

model_specifications

A named list

...

Arguments passed to brms::brm

Value

birtsmsfit object

Examples

1
2
3
4
5
6
7
8
## Not run: 
testdata <- birtms::compose_dataset(response_data = data_spm[1:100,], response_columns = i1:i12)
formula_1d_1pl <- birtms::build_formula()
fit_1d_1pl_spm1 <- birtms::birtm(data = testdata, formula = formula_1d_1pl,
file = '../inst/extdata/fit_1d_1pl_spm1')
fit_1d_1pl_spm1

## End(Not run)

Famondir/birtms documentation built on Feb. 18, 2022, 2:51 a.m.