View source: R/clean_measure_score_table.R
create_weight | R Documentation |
Calculate the weights from the denominator
create_weight(x = r_x)
x |
A data frame containing the measure denominator of the hospital compare star rating. |
The formula:
w_{khd} = \frac{n_{khd}}{\sum_{i=1}^{N_{kd}}(n_{khd})} * N_{kd}
Where:
w_{khd}
: Weight for measure k
, hospital h
, measure group d
n_{khd}
: Denominator for hospital h
, measure k
in measrue group d
N_{kd}
: The total number of hospitals for measure k
in measure group d
R^2 = 1 - \frac{estimated variance}{observed variance}
A data frame containing the weighting factor which will used to perform lvm.
:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.