set.seed(1)
x <- rnorm(100, 2, 4)
re <- cox(sort(x))
plot(re$x, re$a, xlab = "x", ylab = "Estimated Score",
main = "Estimator of score function")
abline(0, 1)
set.seed(1)
x <- rnorm(100, 2, 4)
score_plot1D(sort(x))
Run the code above in your browser using DataLab