dS_lin1_test <- function(thetaN, alpha, y, mod = FALSE)
{
dS <- rexpar::dS_lin1(thetaN, y, mod = mod)
CdS <- (length(y) - 1) * (dS - 1 / 2)
deci <- (CdS < 1 / 2 - 1 / 2 * qchisq((1 - alpha), 1))
list(TS = CdS, phi = deci)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.