Estimates a Bayesian analog to the the Alternating Least Squares Optimal Scaling (ALSOS) solution for qualitative dependent variables.
balsos(
formula,
data,
iter = 2500,
chains = 1,
alg = c("NUTS", "HMC", "Fixed_param"),
...
)
A formula with a dependent variable that will be optimally scaled
A data frame.
Number of samples for the MCMC sampler.
Number of parallel chains to be run.
Algorithm used to do sampling. See stan
for more
details.
Other arguments to be passed down to stanfit
.
A list with the following elements:
The fitted stan output
The dependent variable values used in the regression.
The design matrix for the regression
balsos
estimates a Bayesian analog to the Alternating Least Squares
Optimal Scaling solution on the dependent variable. This permits testing
linearity assumptions on the original scale of the dependent variable.
Jacoby, William G. 1999. ‘Levels of Measurement and Political Research: An Optimistic View’ American Journal of Political Science 43(1): 271-301.
Young, Forrest. 1981. ‘Quantitative Analysis of Qualitative Data’ Psychometrika, 46: 357-388.
Young, Forrest, Jan de Leeuw and Yoshio Takane. 1976. ‘Regression with Qualitative and Quantitative Variables: An Alternating Least Squares Method with Optimal Scaling Features’ Psychometrika, 41:502-529.