addGroups2WFUN | R Documentation |
This function takes a specification of parametric weights and returns a modified version with group-dependent parameters. Only single-parameter functions are currently supported.
addGroups2WFUN(WFUN, groups, initial = rep.int(WFUN$initial, nlevels(groups)))
WFUN |
a list specification of parametric weights, e.g.,
as returned by the constructor functions |
groups |
a vector of length |
initial |
(named) vector of initial parameters. |
a list specifying group-dependent parametric weights for hhh4
.
Sebastian Meyer
data("measlesWeserEms")
WPLgroups <- addGroups2WFUN(
W_powerlaw(maxlag = 5, normalize = FALSE, log = FALSE),
groups = factor(sample(2, ncol(measlesWeserEms), replace = TRUE)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.