negbin.regs: Many negative binomial regressions

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Many negative binomial regressions.

Usage

1
negbin.regs(y, x, type = 1, tol = 1e-07, logged = FALSE, parallel = FALSE, maxiters = 100)

Arguments

y

The dependent variable, a numerical variable with non negative numbers

x

A matrix with the indendent variables.

type

You can choose which way your prefer. Type 1 is for smal sample sizes, whereas type 2 is for larger ones as is faster.

tol

The tolerance value to terminate the Newton-Raphson algorithm.

logged

If you want the logarithm of the p-values set this equal to TRUE.

parallel

Do you want this to be executed in parallel or not. The parallel takes place in C++, therefore you do not have the option to set the number of cores.

maxiters

The maximum number of iterations that can take place in each regression.

Details

Many simple negative binomial regressions with a log-link are fitted.

Value

A matrix with the test statistic values and their relevant (logged) p-values.

Author(s)

Stefanos Fafalios and and Michail Tsagris.

R implementation and documentation: Stefanos Fafalios stefanosfafalios@gmail.com and Michail Tsagris mtsagris@uoc.gr.

References

McCullagh, Peter, and John A. Nelder. Generalized linear models. CRC press, USA, 2nd edition, 1989.

Zakariya Yahya Algamal and Intisar Ibrahim Allyas (2017). Prediction of blood lead level in maternal and fetal using generalized linear model. International Journal of Advanced Statistics and Probability, 5(2): 65-69.

See Also

bic.regs, negbin.reg, score.zipregs, ztp.reg

Examples

1
2
3
4
5
6
7
## Not run: 
y <- rnbinom(100, 10, 0.6)
x <- matrix( rnorm( 100 * 200), ncol = 200 )
a <- negbin.regs(y, x)
x <- NULL

## End(Not run)

Rfast2 documentation built on Oct. 11, 2021, 1:06 a.m.