| sprt_plot | R Documentation |
Plot SPRT results
sprt_plot(res)
res |
A list returned by |
A ggplot object showing the SPRT path with thresholds and decision point.
x <- c(0,0,1,0,1,1,1,0,0,1,0,0)
res <- sprt(x, alpha = 0.05, beta = 0.1, p0 = 0.1, p1 = 0.3)
print(res)
sprt_plot(res)
x1 <- c(52, 55, 58, 63, 66, 70, 74)
result1 <- sprt(x1, alpha = 0.05, beta = 0.1, p0 = 50, p1 = 65, dist = "normal", sigma = 10)
result1
sprt_plot(result1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.