make_respFacDtb: Make a response factor data table from an srDtb data.table

Description Usage Arguments Details Value

View source: R/factorialResponseLogisticExpandedDesign.R

Description

Make a response factor data table from an srDtb data.table

Usage

1
2
make_respFacDtb(srDtb, masterCatColName, desiredFactorColNames,
  includeMasterCatInDesired = TRUE)

Arguments

srDtb

– a stimulus-response data.table (one trial per row) or a data table compatible with respFacDtb except for masterCatLevels attributes

masterCatColName

– column name for master category

desiredFactorColNames

– column names to be used in formula

includeMasterCatInDesired

– boolean (default TRUE) whether to include masterCatColName among desiredFactorColNames

Details

Collect response factors from an srDtb and collect into a compact respFacDtb Note if you want to exclude masterCatColName from output of columns, you must set includeMasterCatInDesired=FALSE

Value

- returns a respFacDtb data.table with masterCatLevel attribute (and class == data.frame;data.table; respFacDtb). Note only has nlevels(masterCat) rows and columns are masterCat and any other factors that decompose mastercat


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