Rs <- ruars(20, rvmises, kappa = 0.01)
# Projected median
median(Rs)
# Geometric median
median(Rs, type = "geometric")
# Bias of the projected median
rot.dist(median(Rs))
# Bias of the geometric median
rot.dist(median(Rs, type = "geometric"))
Qs <- as.Q4(Rs)
# Projected median
median(Qs)
# Geometric median
median(Qs, type = "geometric")
# Bias of the projected median
rot.dist(median(Qs))
# Bias of the geometric median
rot.dist(median(Qs, type = "geometric"))
Run the code above in your browser using DataLab