dat2cov | R Documentation |
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
.
dat2cov( x, FUN = "mean", ..., notobs = 0, katorder = FALSE, caseorder = TRUE, wgt = NULL )
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 |
No further details
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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.