Skip to contents

Majorisation-based unfolding embedding respondents and stimuli into a common space.

Usage

morie_spatial_voting_smacof_unfolding(
  D,
  n_dims = 2L,
  max_iter = 300L,
  tol = 1e-06
)

Arguments

D

Respondent-by-stimulus dissimilarity matrix.

n_dims

Latent dimensions.

max_iter

Maximum iterations.

tol

Convergence tolerance.

Value

A list with respondent_coords, stimulus_coords, stress, iterations, converged.

References

Borg & Groenen (2005); Armstrong et al. (2021), Ch. 4.

Examples

D <- matrix(stats::runif(12), 3, 4)
morie_spatial_voting_smacof_unfolding(D, max_iter = 20)
#> $respondent_coords
#>            [,1]        [,2]
#> [1,] -0.7087178 -0.09398674
#> [2,] -0.4563134 -0.05992901
#> [3,] -0.5731562 -0.07605418
#> 
#> $stimulus_coords
#>           [,1]       [,2]
#> [1,] 0.2818295 0.03704586
#> [2,] 0.7806453 0.10460527
#> [3,] 0.8258395 0.10822002
#> [4,] 0.4292688 0.05675542
#> 
#> $stress
#> [1] 4.363171
#> 
#> $iterations
#> [1] 20
#> 
#> $converged
#> [1] FALSE
#>