demo_fit: A synthetic bayesqm_fit for examples and tutorials

View source: R/demo_fit.R

demo_fitR Documentation

A synthetic bayesqm_fit for examples and tutorials

Description

Returns a bayesqm_fit with realistic Q-methodology structure: every participant has a dominant factor, roughly 40 percent of the statements polarise the factor pair, 10 percent are consensus, and the remainder are weakly partial. Use it for documentation, teaching materials, and the package vignette; it is not a substitute for fit_bayesian() on real data.

Usage

demo_fit(N = 20, J = 22, K = 2, Td = 400, seed = 1L)

Arguments

N

Number of participants.

J

Number of statements.

K

Number of factors.

Td

Number of posterior draws.

seed

Integer seed for reproducibility; NULL leaves the random number generator untouched.

Value

A bayesqm_fit.

Examples

fit <- demo_fit(N = 12, J = 15, K = 2)
plot(fit)
summary(fit)


bayesqm documentation built on June 18, 2026, 1:07 a.m.