dat2cov {confreq} | R Documentation |
conversion of a covariate dataset into summary covariate values
Description
Given a dataset x
, this function returns summary values for some (numeric
) covariate variables in x
for each pattern (configuration) defined by a set of factor variables in x
.
Usage
dat2cov(
x,
FUN = "mean",
...,
notobs = 0,
katorder = FALSE,
caseorder = TRUE,
wgt = NULL
)
Arguments
x |
an object of class "data.frame" with at least 2 |
FUN |
a function to compute the summary statistics which can be applied to all covariate variables in |
... |
further arguments passed to or used by methods in |
notobs |
a numeric vector possibly with length equal to the number of |
katorder |
see |
caseorder |
see |
wgt |
a numerical vector of survey weights to weight the cases (rows) in |
Details
No further details
Value
An object of class c("data.frame", "Pcov")
holding the summary statistics for the covariate variables corresponding to the pattern (configurations) of the given dataset in the argument x
.