Description Usage Arguments Details Value Examples
This function calculates an asymptotic chi-square likelihood ratio hypothesis test of a specified null hypothesis for the cutover.
1 | pvalue.cutover(data, formula, link1, link2, cutover0)
|
data |
a data frame containing the variables in the model. |
formula |
an object of class formula, a symbolic description of the model to be fitted, see help(glm) |
link1 |
Character string indicating the link function to be used up to the cutover |
link2 |
Character string indicating the link function to be used above the cutover |
cutover0 |
The hypothesized value of the cutover at which the link function switches smoothly from link1 to link2. Must be strictly greater than 0 and strictly less than 1. |
Binary regression is assumed. Not suitable when the null value is on the boundary (i.e. when cutover0 is 0 or 1).
The p-value of a test of the null hypothesis that cutover=cutover0.
1 2 | pvalue.cutover(y~x1+x2 , data=loglogit.example,link1="log",link2="logit",
cutover0=0.8)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.