View source: R/nicqFunctions.R
getfx2 | R Documentation |
nicqTest
.
Usually not directly called, called by nicqTest
.
getfx2(i, n1, n2, g, slowint = FALSE, mint = 100, interr = 10^-3)
nicqCalc(X2T1i,g,i0,n1,n2,delta0=.10,q0=.20,
conf.int=TRUE,
conf.level=0.95,
conf.sided=c("two.sided","one.sided"), alternative="less",
control=nicqControl())
nicqGetpvalue(X2T1i,n1,n2,g,i0,alternative="less",
control=nicqControl())
i |
ic value |
n1 |
number in control group |
n2 |
number in test group |
g |
function |
slowint |
logical, if true use built-in integrate function. But this is slower. |
mint |
number of trapizoids for calculation with slowint=FALSE |
interr |
tolerance for integration |
The function getfx2
gets probability mass function for x2=number of failures in the test group at or before the ith failure in the control group. Uses very simple numeric integration (slowint=FALSE) that just adds mint trapazoids (rectangles with triangle tops).
vector of probabilities for all possible x2 values, forced to sum to 1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.