sropt_test(X,alternative=c("greater","two.sided","less"),
zeta.s=0,ope=1,conf.level=0.95)"two.sided", "greater" (default) or
"less". You can specify just the initial letter.ope "htest" containing the following
components:The default alternative hypothesis is the one-sided $$H_0: \mu^{\top}\Sigma^{-1}\mu > \delta_0^2$$ but this can be set otherwise.
Note there is no 'drag' term here since this represents a linear offset of the population parameter.
reannualize Other sropt: as.sropt,
as.sropt.default,
as.sropt.xts, confint.sr,
confint.sropt, dsropt,
is.sropt, power.sropt_test,
reannualize, reannualize.sr,
reannualize.sropt, sropt
# test for uniformity
pvs <- replicate(128,{ x <- sropt_test(matrix(rnorm(1000*4),ncol=4),alternative="two.sided")
x$p.value })
plot(ecdf(pvs))
abline(0,1,col='red')Run the code above in your browser using DataLab