Usage
frm(y, x, x2 = x, linkbin, linkfrac, type = "1P", inflation = 0, intercept = T,
table = T, variance = T, var.type = "default", var.eim = T, var.cluster,
dfc = F,...)
Arguments
y
a numeric vector containing the values of the response variable.
x
a numeric matrix, with column names, containing the values of the covariates.
x2
a numeric matrix, with column names, containing the values of the covariates in the fractional component of two-part
models if option type = "2P"
is defined. Defaults to x
.
linkbin
a description of the link function to use in the binary component of a two-part fractional regression model.
Available options: logit
, probit
, cauchit
, loglog
, cloglog
.
linkfrac
a description of the link function to use in standard fractional regression models or in the fractional component
of a two-part fractional regression model. Available options: logit
, probit
, cauchit
,
loglog
, cloglog
.
type
a description of the model to estimate: a standard one-part model (1P
, the default), a two-part model
(2P
), the binary component of a two-part model (2Pbin
) or the fractional component of a two-part
model (2Pfrac
).
inflation
a numeric value indicating which of the extreme values of 0
(the default) or 1
is the relevant boundary value for
defining two-part fractional regression models.
intercept
a logical value indicating whether the model should include a constant term or not.
table
a logical value indicating whether a summary table with the regression results should be printed.
variance
a logical value indicating whether the variance of the estimated parameters should be calculated. Defaults to
TRUE
whenever table = TRUE
.
var.type
a description of the type of variance of the estimated parameters to be calculated. Options are standard
(recommended
for models estimated by maximum likelihood, such as the binary component of two-part models), robust
(recommended
for models estimated by quasi-maximum likelihood, such as standard fractional regression models or the fractional
component of a two-part fractional regression model), cluster
(recommended in the case of panel data) and
default
(implements the standard
or robust
versions as appropriate).
var.eim
a logical value indicating whether the expected information matrix should be used in the calculation of the variance. When
false, the observation information matrix will be used. Defaults to TRUE
.
var.cluster
a numeric vector containing the values of the variable that specifies to which cluster each observation belongs.
dfc
a logical value indicating whether a degrees of freedom correction should be applied to the covariance matrix. Defaults to
FALSE
.
...
Arguments to pass to glm.