tnl: The (tnl) function.

Description Usage Arguments Value Examples

View source: R/testpackage.R

Description

Perform exact tnl.

Gives the distribution function

Usage

1
2
3
tnl(k, n, l)

ptnl(k, n, l, trial = 1e+05)

Arguments

k

Vector of quantiles.

n

Sample size.

l

The class parameter of Tnl.

trial

The number of trials.

Value

list of an exact probability and distribution function.

The value of the distribution against the specified k.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 ##You need to select all of \code{k}, \code{n} and \code{l}
tnl(k=2,n=7,l=1)
## Not run: 
$prob
[1] 0.1538462

$tt
[1] 0.2307692

## End(Not run)

## Not run: You need to select all of \code{k}, \code{n} and \code{l}
## Not run: \code{trial}=100000 by default
ptnl(k=2,n=6,l=2,trial = 100000)
## Not run: 
$k
[1] 2

$n
[1] 6

$l
[1] 2

$method
[1] "exact"

$ptnl
[1] 0.03030303
## End(Not run)

ihababusaif/testpackage documentation built on Dec. 20, 2021, 6:55 p.m.