termsToFormula: Function to create a formula from a list of group and phase...

View source: R/reparameterize.r

termsToFormulaR Documentation

Function to create a formula from a list of group and phase specific intercepts and slopes

Description

used by the PersonAlyticsPower GUI

Usage

termsToFormula(terms, random = ~Time | id)

Arguments

terms

Character vector or list.

random

A random effects formula. The default is ~ Time | id as used by PersonAlyticsPower

Examples


terms <- c("group1_phase1_int",
           "group1_phase1_slope",
           "group1_phase2_int",
           "group1_phase2_slope",
           "group1_phase3_int",
           "group1_phase3_slope",
           "group2_phase1_int",
           "group2_phase1_slope",
           "group2_phase2_int",
           "group2_phase2_slope",
           "group2_phase3_int",
           "group2_phase3_slope")
termsToFormula(terms)


ICTatRTI/PersonAlytics documentation built on Dec. 13, 2024, 11:06 p.m.