Learn R Programming

mmrm (version 0.3.14)

h_within_or_between: Determine Within or Between for each Design Matrix Column

Description

Used in h_df_bw_calc() to determine whether a variable differs only between subjects or also within subjects.

Usage

h_within_or_between(x_matrix, subject_ids)

Value

Character vector with "intercept", "within" or "between" for each design matrix column identified via the names of the vector.

Arguments

x_matrix

(matrix)
the design matrix with column names.

subject_ids

(factor)
the subject IDs.