prepCleanData | R Documentation |
Vertex names, if not already factors, are converted to factors. The number of thresholds per item is determined by the largest absolute response value. Missing responses are filtered out. Responses on the same pair of vertices on the same item are grouped together. Within a vertex pair and item, responses are ordered from negative to positive.
prepCleanData(df)
df |
a data frame with pairs of vertices given in columns |
Note: Reordering of responses is likely unless something like
normalizeData
has been used with .sortRows=TRUE
.
a data list suitable for passing as the data
argument to pcStan
or stan
Other data preppers:
prepData()
,
prepFactorModel()
,
prepSingleFactorModel()
df <- prepCleanData(phyActFlowPropensity)
str(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.