I have an assessment tool that uses two Array(F) questions.
One collects symptom data and has 47 questions. Uses a four-point answer option (0,1,2,3)
One collects performance data and has 8 questions. Uses a five-point answer option (1,2,3,4,5)
I have written summary equations that add up the number of symptoms for different subgroups within the 47 questions.
This works well and I can get a count of the number of symptoms for each subgroup which are endorsed at greater than or equal to (ge) 2 on the answeroptions. I can also get a count of the number of performance items that are rated (ge) 4 on the performance answeroptions.
The problem comes when I try to apply conditional logic to determining whether the combination of symptom count and performance count is sufficient to suggest a diagnosis.
The rules are pretty straightforward. e.g. for Inattentive ADD a possible diagnosis would be indicated by a symptom count (InnADDcount) (ge) 6 AND a performance count (PERFcount) ge 1.
I have made a Diagnostic Summary question of Equation type.
In the text box (not the equation box) I have put the following;
Code:
Diagnostic Likelihood Summary
Inattentive ADD: {if(InnADDcount ge 6 and PERFcount ge 1, 'YES', 'NO')}
Hyperactive ADD: {if(HypADDcount ge 6 and PERFcount ge 1, 'YES','NO')}
Combined ADHD: {ADHDcomb}
ODD: {if(ODDcount ge 8 and PERFcount ge 1, 'YES','NO')}
Conduct Disorder: {if(CDcount ge 3 and PERFcount ge 1, 'YES','NO')}
Anxiety/Depression: {if(ANXDEPcount ge 7 and PERFcount ge 1, 'YES','NO')}
And this doesn't work.
It seems to process the logic OK. There are no warnings or indications that the syntax is wrong.
But, each summary evaluates to NO no matter what the count numbers are in symptoms and performance.
I am attaching the lss file for this survey.
The questions I have are;
(a) Is it reasonable to structure an equation question in this way, i.e. putting multiple equations mixed with header text into the one evaluation space? and, if so;
(b) is there something wrong with the conditional logic that I am using.
It seems pretty simple to me and I just can't see where I am going wrong.
p.s. I have experimented by just using one equation question for each diagnostic check and get the same result
Thanks for having a look. Your advice would be very welcome.