Functions used to describe the characteristics of estimated random parameters
stdev(x, ...)rg(x, ...)
med(x, ...)
# S3 method for rpar
mean(x, norm = NULL, ...)
# S3 method for rpar
med(x, norm = NULL, ...)
# S3 method for rpar
stdev(x, norm = NULL, ...)
# S3 method for rpar
rg(x, norm = NULL, ...)
# S3 method for mlogit
mean(x, par = NULL, norm = NULL, ...)
# S3 method for mlogit
med(x, par = NULL, norm = NULL, ...)
# S3 method for mlogit
stdev(x, par = NULL, norm = NULL, ...)
# S3 method for mlogit
rg(x, par = NULL, norm = NULL, ...)
qrpar(x, ...)
prpar(x, ...)
drpar(x, ...)
# S3 method for rpar
qrpar(x, norm = NULL, ...)
# S3 method for rpar
prpar(x, norm = NULL, ...)
# S3 method for rpar
drpar(x, norm = NULL, ...)
# S3 method for mlogit
qrpar(x, par = 1, y = NULL, norm = NULL, ...)
# S3 method for mlogit
prpar(x, par = 1, y = NULL, norm = NULL, ...)
# S3 method for mlogit
drpar(x, par = 1, y = NULL, norm = NULL, ...)
a mlogit
or a rpar
object,
further arguments.
the variable used for normalization if any : for the
mlogit
method, this should be the name of the parameter, for
the rpar
method the absolute value of the parameter,
the required parameter(s) for the mlogit
methods
(either the name or the position of the parameter(s). If
NULL
, all the random parameters are used.
values for which the function has to be evaluated,
a numeric vector for qrpar
, drpar
and prpar
, a
numeric vector for mean
, stdev
and med
and a numeric
matrix for rg
.
rpar
objects contain all the relevant information about
the distribution of random parameters. These functions enables
to obtain easily descriptive statistics, density, probability
and quantiles of the distribution.
mean
, med
, stdev
and rg
compute respectively the mean, the
median, the standard deviation and the range of the random
parameter. qrpar
, prpar
, drpar
return functions that compute
the quantiles, the probability and the density of the random
parameters (note that sd
and range
are not generic function in
R
and that median
is, but without ...
).
mlogit()
for the estimation of random parameters logit
models and rpar()
for the description of rpar
objects.