strLine | R Documentation |
This will return the percentage of situation-action pairs for which the respondent showed zero response variability.
strLine(ESJT, locX = c(4:(ncol(ESJT) - 1)))
ESJT |
ESJT matrix (should have 'p','s','i' as their first three features) |
locX |
location of expected outcome ratings (note: default generously assumes the prescribed 'c(p,s,i,...,Likelihood)' data structure) ratings provided at different portion of survey) |
It is recommended within that respondents showing 10% straightlining by this index be removed from all analyses, however less stringent cutoffs (e.g., 25%) might be employed when respondents rate very few features (e.g., 5 or less) or if all features are desirable, both of which can make straight-lining behavior less suspect
per0.p - the percentage of situation-action pairs in which the respondent showed zero response variability whatsoever.
#combine this function and recommended screen into a single statement:
analysiscases <- subset(strLine(ESJT), per0.p > .10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.