compute_ph_y_bp__sys_nm | R Documentation |
Computes the summary score ph_y_bp__sys_nm
Blood Pressure [Youth] (Systolic): Number missing
Summarized variables:
ph_y_bp__sys__r01_001
ph_y_bp__sys__r01_002
ph_y_bp__sys__r01_003
ph_y_bp__sys__r02_001
ph_y_bp__sys__r02_002
ph_y_bp__sys__r03_001
ph_y_bp__sys__r03_002
Excluded values: none
There are at most 3 possible rounds of measurements, and the calculation is as follows:
if round 3 is available, use it, otherwise use round 2, otherwise use round 1
for round 3 and 2, there are at most 2 measurements
for round 1, there are at most 3 measurements:
participants with 3 measurements, and 0 missing, nm = 0
participants with 2 measurements, and 1 missing, nm = 1 - 1 = 0
participants with 1 measurement, and 2 missing, nm = 2 - 1 = 1
participants with 0 measurements, and 3 missing, nm = 3 - 1 = 2
compute_ph_y_bp__sys_nm(data, name = "ph_y_bp__sys_nm", combine = TRUE)
data |
tbl, Dataframe containing the columns to be summarized. |
name |
character, Name of the new column to be created. Default is the name in description, but users can change it. |
combine |
logical, If |
tbl. The input data frame with the summary score appended as a new column.
compute_ph_y_bp__sys_mean()
## Not run:
compute_ph_y_bp__sys_nm(data) |>
select(
all_of(c("ph_y_bp__sys_nm", vars_ph_y_bp__sys))
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.