tests/t-student.R

require(OneStep)

n <- 1e3

#### standard student distribution ####

theta <- c("df"=3/2, "ncp"=0)
o.sample <- rt(n, df = theta["df"], ncp = theta["ncp"])

mledist(o.sample, "t", start=list("df"=2), fix.arg=list("ncp"=0))
onestep(o.sample, "t", control=list(delta=0.3))
onestep(o.sample, "t", control=list(delta=0.75))

Try the OneStep package in your browser

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

OneStep documentation built on Oct. 17, 2024, 5:06 p.m.