Usage
gpg(inc, gender = NULL, method = c("mean", "median"),
weights = NULL, sort = NULL, years = NULL,
breakdown = NULL, design = NULL, cluster = NULL,
data = NULL, var = NULL, alpha = 0.05, na.rm = FALSE,
...)
Arguments
inc
either a numeric vector giving the equivalized
disposable income, or (if data
is not NULL
)
a character string, an integer or a logical vector
specifying the corresponding column of data
.
gender
either a factor giving the gender, or (if
data
is not NULL
) a character string, an
integer or a logical vector specifying the corresponding
column of data
.
method
a character string specifying the method to
be used. Possible values are "mean"
for the mean,
and "median"
for the median. If weights are
provided, the weighted mean or weighted median is
estimated.
weights
optional; either a numeric vector giving
the personal sample weights, or (if data
is not
NULL
) a character string, an integer or a logical
vector specifying the corresponding column of
data
.
sort
optional; either a numeric vector giving the
personal IDs to be used as tie-breakers for sorting, or
(if data
is not NULL
) a character string,
an integer or a logical vector specifying the
corresponding column of
years
optional; either a numeric vector giving the
different years of the survey, or (if data
is not
NULL
) a character string, an integer or a logical
vector specifying the corresponding column of
data
. If sup
breakdown
optional; either a numeric vector giving
different domains, or (if data
is not NULL
)
a character string, an integer or a logical vector
specifying the corresponding column of data
. If
supplied, the value
design
optional and only used if var
is not
NULL
; either an integer vector or factor giving
different strata for stratified sampling designs, or (if
data
is not NULL
) a character string, an
integer
cluster
optional and only used if var
is
not NULL
; either an integer vector or factor
giving different clusters for cluster sampling designs,
or (if data
is not NULL
) a character
string, an integer o
data
an optional data.frame
.
var
a character string specifying the type of
variance estimation to be used, or NULL
to omit
variance estimation. See variance
for
possible values. alpha
numeric; if var
is not NULL
,
this gives the significance level to be used for
computing the confidence interval (i.e., the confidence
level is $1 -$alpha
).
na.rm
a logical indicating whether missing values
should be removed.
...
if var
is not NULL
, additional
arguments to be passed to variance
.