f2stan: Convert a typical logistic equation formula into a Stan code

Description Usage Arguments Value

View source: R/f2stan.R

Description

Convert a typical logistic equation formula into a Stan code

Usage

1
2
f2stan(formula, data, link = c("logit", "probit"),
  adaptive_pooling = FALSE)

Arguments

formula

A formula that you would pass to 'glm' or similar.

data

A data frame of observations.

link

A link function (either "logit" or "probit")

adaptive_pooling

Logical (FALSE by default) Specifies whether adaptive pooling should be used when fitting the model. Requires that both an intecept and factor variables are included in the formula.

Value

A model and data that can be used by 'rstan::stan' as well as information about the model and the data.


adknudson/BayesPsychometric documentation built on Nov. 22, 2019, 1:59 p.m.