lineals | R Documentation |
This function performs optimal scaling in order to achieve linearizing transformations for each bivariate regression.
lineals(data, level = "nominal", itmax = 100, eps = 1e-06)
data |
Data frame or matrix |
level |
Vector with scale level of the variables ("nominal" or "ordinal"). If all variables have the same scale level, only one value can be provided |
itmax |
Maximum number of iterations |
eps |
Convergence criterion |
This function can be used as a preprocessing tool for categorical and ordinal data for subsequent factor analytical techniques such as structural equation models (SEM) using the resulting correlation matrix based on the transformed data. The estimates of the corresponding structural parameters are consistent if all bivariate regressions can be linearized.
loss |
Final value of the loss function |
catscores |
Resulting category scores (after optimal scaling) |
cormat |
Correlation matrix based on the scores |
cor.rat |
Matrix with correlation ratios |
indmat |
Indicator matrix (dummy coded) |
scoremat |
Transformed data matrix (i.e with category scores resulting from optimal scaling) |
burtmat |
Burt matrix |
niter |
Number of iterations |
Jan de Leeuw, Patrick Mair
Mair, P., & De Leeuw, J. (2008). Scaling variables by optimizing correlational and non-correlational aspects in R. Journal of Statistical Software, 32(9), 1-23. doi: 10.18637/jss.v032.i09
de Leeuw, J. (1988). Multivariate analysis with linearizable regressions. Psychometrika, 53, 437-454.
corAspect
data(galo) res.lin <- lineals(galo) summary(res.lin)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.