View source: R/Ncontributors.R
NcontributorsHolding | R Documentation |
Ncontributors
with holding-indicatorThe aggregates (columns of x
) are grouped by a holding indicator.
Within each holding group, the number of unique groups (output) is set to be equal.
NcontributorsHolding(x, groups, holdingInd = NULL)
x |
A (sparse) dummy matrix |
groups |
Vector of group categories |
holdingInd |
Vector of holding group categories |
A representative within the holding group is used to calculate output by Ncontributors
.
The one with maximal column sum of x
is chosen as the representative.
Normally this will be an aggregate representing the holding group total.
When holdingInd is NULL (default), the function is equivalent to Ncontributors
.
Vector of numbers of unique groups
Øyvind Langsrud
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.