build_fixed_rhs: Build Fixed-Effects RHS Formula String

View source: R/utils.R

build_fixed_rhsR Documentation

Build Fixed-Effects RHS Formula String

Description

Internal helper to construct the right-hand side of a fixed-effects formula from factors, interaction flag, and continuous covariates.

Usage

build_fixed_rhs(
  factors = NULL,
  factor_interaction = FALSE,
  continuous_covariates = NULL,
  data = NULL
)

Arguments

factors

Character vector of factor names (can be NULL).

factor_interaction

Logical. If TRUE and two factors provided, include their interaction.

continuous_covariates

Character vector of continuous covariate names.

Value

A character string representing the RHS (e.g., "~ 1 + dose + drug").


beezdemand documentation built on March 3, 2026, 9:07 a.m.