inst/doc/Introduction_to_SSTN.R

## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  message = FALSE,
  warning = FALSE
)

## ----library setup------------------------------------------------------------
library(sstn)

## ----example setup------------------------------------------------------------
set.seed(123)

# Sample from standard normal (null hypothesis true)
x <- rnorm(100)
res <- sstn(x)
res$p_value

# Sample from Gamma distribution (null hypothesis false)
y <- rgamma(100, 1)
res2 <- sstn(y)
res2$p_value

Try the sstn package in your browser

Any scripts or data that you put into this service are public.

sstn documentation built on Sept. 16, 2025, 9:11 a.m.