getfx2: Internal functions for 'nicqTest'.

Description Usage Arguments Details Value

View source: R/nicqFunctions.R

Description

Usually not directly called, called by nicqTest.

Usage

1
2
3
4
5
6
7
8
9
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())

Arguments

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

Details

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).

Value

vector of probabilities for all possible x2 values, forced to sum to 1.


nivm documentation built on May 2, 2019, 8:22 a.m.