select_bi_cases {lcsm} | R Documentation |
Select cases based on minimum number of available session scores on two longitudinal measures
Description
Select cases based on minimum number of available session scores on two longitudinal measures
Usage
select_bi_cases(data, id_var, var_list_x, var_list_y, min_count_x, min_count_y)
Arguments
data |
A data frame in "wide" format, i.e. one column for each measurement point and one row for each observation. |
id_var |
String, specifying id variable. |
var_list_x |
Vector, specifying variable names of construct X in sequential order. |
var_list_y |
Vector, specifying variable names of construct Y in sequential order. |
min_count_x |
Numeric, specifying minimum number of available scores for construct X. |
min_count_y |
Numeric, specifying minimum number of available scores for construct Y. |
Value
tibble
Examples
select_bi_cases(data_bi_lcsm,
id_var = "id",
var_list_x = names(data_bi_lcsm)[2:11],
var_list_y = names(data_bi_lcsm)[12:21],
min_count_x = 7,
min_count_y = 7
)
[Package lcsm version 0.3.2 Index]