Title: | Structural Equation Multidimensional Scaling |
---|---|
Description: | Fits a structural equation multidimensional scaling (SEMDS) model for asymmetric and three-way input dissimilarities. It assumes that the dissimilarities are measured with errors. The latent dissimilarities are estimated as factor scores within an SEM framework while the objects are represented in a low-dimensional space as in MDS. |
Authors: | Patrick Mair [aut, cre], Jose Fernando Vera [aut] |
Maintainer: | Patrick Mair <[email protected]> |
License: | GPL (>= 2) |
Version: | 0.9-6 |
Built: | 2024-11-22 03:04:52 UTC |
Source: | https://github.com/cran/semds |
Contains dissimilarity matrices across mountain regions in British Columbia and BC for each of the 13 avalanche problems. The extended Dice coefficient was used on problem prevalences in order to compute the dissimilarities. This computation was carried out for each elevation band (alpine, treeline, below treeline) separately.
data(AvaRegions)
data(AvaRegions)
For each elevation band a list of dissimilarity matrices is provided for the following avalanche problems:
DeepP
Deep persistent slab
Ldry
Loose dry avalanche
Lwet
Loose wet & persistent slab
NoProbs
No avalanche problems
Pers
Persistent slab
PersPlus
Persistent slab plus
Spring
Spring-like
Storm
Storm slab
StormDeepP
Storm & deep persistent slab
StormPers
Storm & persistent slab
StormWind
Storm & wind slab
StormWindPers
Storm, wind, & persistent slab
Wind
Wind slab
Thanks to Pascal Haegeli from SFU for sharing this dataset.
Shandro, B., & Haegeli, P. (2018). Characterizing the nature and variability of avalanche hazard in western canada. Natural Hazards and Earth System Sciences, 18, 1141-1158.
data(AvaRegions) str(alpD) ## alpine str(tlD) ## treeline str(btlD) ## below treeline
data(AvaRegions) str(alpD) ## alpine str(tlD) ## treeline str(btlD) ## below treeline
A few seconds from recordings of 15 musical compositions by Brahms were the stimuli for a study involving 10 McGill undergraduates. The 105 possible unordered pairs of these pieces of music were transcribed to tape and each student was required to judge the dissimilarity for each pair. The judgements were ratings on an ordered category rating scale having 25 numbered categories with the lowest category labelled "extremely similar" and the largest category labelled "extremely different". Thus each judgement was transcribed as an integer from 1 to 25. Here we give a normalized version of the data.
data(BrahmsNorm)
data(BrahmsNorm)
A list of length 10 (10 students). Each list element contains a lower triangular matrix with entries reflecting dissimalities of 15 compositions by Brahms: Violin C (V), Clarinet Quintet (Cl5), Symphone 1 (S1), Piano Trio (P3), Piano C (P), Requiem (R), Variants (V), Symphony 4 (S4), Piano Quintet (P5), Viola S (Vi), Valse (Val), Serenata (Ser), Horn Trio (HT), Rhapsody (RH), Violin S (Vs).
Ramsay, J. O. (1982). Some statistical approaches to multidimensional scaling data. Journal of the Royal Statistical Society, Series A, 145, 285–312.
data(BrahmsNorm)
data(BrahmsNorm)
Miller and Nicely (1955) data of perceptual confusions between 16 English consonant phonemes.In this test, female subjects listened to female speakers reading consonant-vowel syllables formed by pairing the consonants with the vowel "a" (as in father), and the subjects were required to write down the consonant they heard after each syllable was spoken. The confusions or errors of identification matrices were compiled under 17 different experimental conditions. The first four 16 x 16 tables given summarize the data obtained when noise-masking conditions produced varying speech-to-noise (S/N) ratios, with the addition of random noise at different levels. The original similarities were transformed into dissimilarities by considering the normalization procedure described by Hubert (1972) for this data set.
data(Miller)
data(Miller)
An asymmetric dissimilarity matrix. "th1" refers to the "th" as in "thy"; "th2" to the "th" as in "thigh"; "ti" refers to the "ti" as in "dilution".
Miller, G. A., & Nicely, P. E. (1955). An analysis of perceptual confusions among some English consonants. The Journal of the Acoustic Society of America, 27, 338–352.
Hubert, L. (1972). Some extensions of Johnson's hierarchical clustering algorithms. Psychometrika, 37, 261–274.
Vera, J. F. & Rivera, C. D. (2014). A structural equation multidimensional scaling model for one-mode asymmetric dissimilarity data. Structural Equation Modeling: A Multidisciplinary Journal, 21(1), 54–62.
data(Miller)
data(Miller)
Ten subjects were asked to judge differences, in terms of his/her own preference, between 15 forms of recreations. Each particular subject judged every one of 105 pairs of forms of recreation in a dissimilarity scale of 25 categories (numbered from 1 to 25). In this data set, only the lower right triangle excluding the diagonal was originally considered for each dissimilarity matrix because the natural asymmetry in judements. Recreations forms were Concert (Ct), Museum (M), Theater (T), Movie (Mv), Television (TV), Conference (Cf), Reading (R), Hockey (H), Ballet (B), Debate (D), Fashion (F), Doc-film (Df), Exhibition (E), Shopping (S) and Restaurant (Re).
data(Miller)
data(Miller)
A list of dissimilarity matrices.
Ramsay (1997).
data(Recreation)
data(Recreation)
Data are taken from Sagarra et al. (2018) involving 15 Spanish Banks in 2008 and 2012. Dissimilarities are computed by a reverse transformation of Chen's commonality index for studying branch rivalry. The rows reflect the recipients of competitive pressure, the columns the creators of rivalry. The larger a dissimilarity value, the lower the competition.
data(SBanks2008D) data(SBanks2012D)
data(SBanks2008D) data(SBanks2012D)
Two asymmetric dissimilarity matrices (2008 and 2012) with 15 Spanish banks in the rows and columns.
Sagarra, M., Busing, F. M. T. A., Mar-Molinero, C., & Rialp, J. (2018). Assessing the asymmetric effects on branch rivalry of spanish financial sector restructuring. Advances in Data Analysis and Classification, 12 , 131-153.
data(SBanks2008D) str(SBanks2008D) data(SBanks2012D) str(SBanks2012D)
data(SBanks2008D) str(SBanks2008D) data(SBanks2012D) str(SBanks2012D)
Fits a multidimensional scaling (MDS) model on asymmetric dissimilarity data and three-way data. It uses an alternating estimation procedure in which the unknown symmetric dissimilarity matrix is estimated in a structural equation modeling (SEM) framework while the objects are represented in a low-dimensional space.
semds(D, dim = 2, saturated = FALSE, theta0 = NULL, maxiter = 1000, eps = 1e-06)
semds(D, dim = 2, saturated = FALSE, theta0 = NULL, maxiter = 1000, eps = 1e-06)
D |
A list of input dissimilarity matrices for the general multiway case. For the special 2-way case it can also be a single asymmetric dissimilarity matrix. |
dim |
Number of dimensions for MDS solution. |
saturated |
For the 2-way case only: whether the model is saturated (TRUE) or not (FALSE; default). |
theta0 |
Starting values for SEM parameter vector. |
maxiter |
Maximum number of iterations. |
eps |
Convergence criterion for difference of subsequent stress values. |
Add details
Returns an object of class "semds"
containing the following elements.
stressnorm |
Normalized stress value. |
stressraw |
Raw stress value. |
Delta |
Disparity matrix. |
theta |
SEM parameter vector. |
conf |
MDS configurations. |
dist |
Distance matrix based on configurations |
niter |
Number of iterations. |
thetatab |
Parameter table. |
call |
Function call. |
Patrick Mair, Jose Fernando Vera
Vera, J. F. & Rivera, C. D. (2014). A structural equation multidimensional scaling model for one-mode asymmetric dissimilarity data. Structural Equation Modeling: A Multidisciplinary Journal, 21(1), 54–62.
## asymmetric model fit2way <- semds(Miller) fit2way summary(fit2way) plot(fit2way) ## asymmetric model (saturated) fit2wayS <- semds(Miller, saturated = TRUE) fit2wayS fit2wayS$theta ## general three-way model fitmway <- semds(BrahmsNorm) fitmway summary(fitmway) plot(fitmway)
## asymmetric model fit2way <- semds(Miller) fit2way summary(fit2way) plot(fit2way) ## asymmetric model (saturated) fit2wayS <- semds(Miller, saturated = TRUE) fit2wayS fit2wayS$theta ## general three-way model fitmway <- semds(BrahmsNorm) fitmway summary(fitmway) plot(fitmway)
In this data set by Wang and Bilger (1973), the same consonant phonemes considered as in Miller & Nicely (1955), except that "m"" and "n"" are substituted for "tS" as in "cheap", and "d3" as in "jeep"", were combined with each of the three vowels /i,a,u/ under six speach-to-noise ratios. To obtain dissimilarities, the normalization approach proposed in Hubert (1972) was applied.
data(Wang)
data(Wang)
An asymmetric dissimilarity matrix.
Wang, M. D., & Bilger, R. C. (1973). Consonant confusions in noise: A study of perceptual features. The Journal of the Acoustical Society of America, 54(5), 1248–1266.
Miller, G. A., & Nicely, P. E. (1955). An analysis of perceptual confusions among some English consonants. The Journal of the Acoustic Society of America, 27, 338–352.
Hubert, L. (1972). Some extensions of Johnson's hierarchical clustering algorithms. Psychometrika, 37, 261–274.
data(Wang)
data(Wang)