This function is designed to run `lmer` models on data partition. It takes a formula based on variables that are set in function `phonotype_gwas_partitioner` (clinical and PCA variables). To set WGS in the `lmer` formula, use `copy_number` term.

This function is designed to run `lmer` models on data partition. It takes a formula based on variables that are set in function `wgs_adni_partitioner` (clinical and PCA variables). To set WGS in the `lmer` formula, use `copy_number` term.

lmer_modeling(data_path, simulation_name, formula, save_model_path)

lmer_modeling(data_path, simulation_name, formula, save_model_path)

Arguments

data_path

the path of partition data

simulation_name

when save output models, is used in name of save model file.

formula

Character variable for `lmer` formula.

save_model_path

The directory of saving model outout.

Value