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 = (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- squared = 1 - (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.