h_within_or_between: Determine Within or Between for each Design Matrix Column

View source: R/between-within.R

h_within_or_betweenR Documentation

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)

Arguments

x_matrix

(matrix)
the design matrix with column names.

subject_ids

(factor)
the subject IDs.

Value

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


openpharma/mmrm documentation built on April 14, 2025, 2:10 a.m.