dat=sim.chngpt("sigmoid4", type="step", n=200, seed=1, beta=1, alpha=-1, x.distr="norm", e.=4)
test=chngpt.test(formula.null=y~z, formula.chngpt=~x, dat, type="step", family="binomial")
test
plot(test)
## Not run:
# # not run because otherwise the examples take >5s and that is a problem for R CMD check
# # has interaction
# test = chngpt.test(formula.null=y~z, formula.chngpt=~x*z, dat, type="step")
# test
# plot(test)
# ## End(Not run)
#antoch.test(y~1, dat, "x.star")
Run the code above in your browser using DataLab