Skip to contents

Perform a nested t-test using LMMs.

Usage

LMM_test(data_df, response, condition, latent_vars)

Arguments

data_df

data frame containing data

response

name of column in data_df that corresponds to the response variable

condition

name of column in data_df that corresponds to condition of interest

latent_vars

vector containing columns in data_df that correspond to variables that describe the nested structure of the data e.g. Patient

Value

p-value derived from likelihood ratio test of model incorporating condition vs null model