MXM (version 0.9.7)

Many simple beta regressions: Many simple beta regressions.

Description

Many simple beta regressions.

Usage

beta.regs(target, dataset, wei = NULL, logged = FALSE, ncores = 1)

Arguments

target
The target (dependent) variable. It must be a numerical vector with integers.
dataset
The indendent variable(s). It can be a vector, a matrix or a dataframe with continuous only variables, a data frame with mixed or only categorical variables.
wei
A vector of weights to be used for weighted regression. The default value is NULL.
logged
A boolean variable; it will return the logarithm of the pvalue if set to TRUE.
ncores
The number of cores to use. The default value is 1.

Value

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

Details

Many simple beta regressions are fitted.

References

Ferrari S.L.P. and Cribari-Neto F. (2004). Beta Regression for Modelling Rates and Proportions. Journal of Applied Statistics, 31(7): 799-815.

See Also

beta.mod, testIndBeta, reg.fit, ridge.reg

Examples

Run this code
y <- rbeta(500, 5, 3)
x <- matrix( rnorm(500 * 20), ncol = 20)
a <- beta.regs(y, x)

Run the code above in your browser using DataCamp Workspace