View source: R/calc_summary_score.R
reweight | R Documentation |
A function to recalculate weights. the corresponding weigt is redistributed into other group if the group is completely missed.
reweight(grp = rep(1, 7), wt = NULL)
grp |
The data to be weighted. For example, the group score in the cms SAS Pack star rating. |
wt |
A vector of weights. Refer to line 95-102 in Sas pack #2 k-mean clustering. |
The weight redistributed. the weight set to zero when the corresponding term is missing and the corresponding weigt is redistributed to other term.
reweight(grp=c(1,1,1,1,1,1,NA))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.