Normal-vector projection of an external measure
Usage
morie_spatial_voting_normal_vectors(ideal_points, external_measure)
Arguments
- ideal_points
Ideal-point coordinates.
- external_measure
Vector to project.
Value
List with normal_vector, angle_degrees, angle_radians,
r_squared, coefficients.
References
Armstrong et al. (2021), Section 2.6.
Examples
morie_spatial_voting_normal_vectors(matrix(rnorm(20), 10, 2), rnorm(10))
#> $normal_vector
#> [1] -0.99955924 0.02968728
#>
#> $angle_degrees
#> [1] 178.2988
#>
#> $angle_radians
#> [1] 3.111901
#>
#> $r_squared
#> [1] 0.06615148
#>
#> $coefficients
#> [1] 0.001637431 -0.351932656 0.010452532
#>