Skip to contents

Ideal-point recovery from unfolding output

Usage

morie_spatial_voting_ideal_point_recovery(X_r, X_s = NULL)

Arguments

X_r

Respondent coordinates.

X_s

Stimulus coordinates (unused; the respondent row IS the ideal point).

Value

Numeric matrix of respondent ideal points.

References

Armstrong et al. (2021), Section 4.5.

Examples

set.seed(1)
morie_spatial_voting_ideal_point_recovery(matrix(rnorm(6), 3, 2))
#>            [,1]       [,2]
#> [1,] -0.6264538  1.5952808
#> [2,]  0.1836433  0.3295078
#> [3,] -0.8356286 -0.8204684