Description Usage Arguments Details Value Examples
View source: R/factorialResponseLogisticExpandedDesign.R
make a "safe" categorial response model.matrix formula string, forcing all : to *
1 | make_catRespMMFormStr(formSpec, respVarColNames, stimVarColNames)
|
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) |
Currently this is not used.
returns a character string
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.