Learn R Programming

Compositional (version 5.5)

Unit-Weibull regression models for proportions: Unit-Weibull regression models for proportions

Description

Unit-Weibull regression models for proportions.

Usage

unitweib.reg(y, x, tau = 0.5)

Arguments

y

A numerical vector proportions. 0s and 1s are allowed.

x

A matrix or a data frame with the predictor variables.

tau

The quantile to be used for estimation. The default value is 0.5 yielding the median.

Value

A list including:

loglik

The loglikelihood of the regression model.

info

A matrix with all estimated parameters, their standard error, their Wald-statistic and its associated p-value.

Details

See the reference paper.

References

Mazucheli J., Menezes A. F. B., Fernandes L. B., de Oliveira R. P. and Ghitany M. E. (2020). The unit-Weibull distribution as an alternative to the Kumaraswamy distribution for the modeling of quantiles conditional on covariates. Journal of Applied Statistics, 47(6): 954--974.

See Also

propreg, beta.reg

Examples

Run this code
# NOT RUN {
y <- exp( - rweibull(100, 1, 1) )
x <- matrix( rnorm(100 * 2), ncol = 2 )
a <- unitweib.reg(y, x)
# }

Run the code above in your browser using DataLab