make_catRespMMFormStr: make a "safe" categorial response model.matrix formula...

Description Usage Arguments Details Value Examples

View source: R/factorialResponseLogisticExpandedDesign.R

Description

make a "safe" categorial response model.matrix formula string, forcing all : to *

Usage

1
make_catRespMMFormStr(formSpec, respVarColNames, stimVarColNames)

Arguments

formSpec

a formula or formula

respVarColNames

charvec of response variable column names (all should be factors)

stimVarColNames

charvec of response variable column names (factors or covariates)

Details

Currently this is not used.

Value

returns a character string

Examples

1
2
3
4
respVarColnames=c('syl','C','V')
stimVarColNames=c('F1','F2','cond')
formStr=make_catRespMMFormStr(formSpec="syl~C*V+C:F1+C:F2+C:cond")
print(formStr)

tnearey/bhmnl documentation built on Nov. 5, 2019, 10:55 a.m.