On Fri, 2 Oct 2015 12:34:42 -0700 (PDT), Marcus Crawford
<
marcus.cr...@gmail.com> wrote:
>On Thursday, October 1, 2015 at 6:29:29 PM UTC-5, Rich Ulrich wrote:
[snip, previous, a few lines of which I will repeat...]
>
>I tried both of these methods and did not get either to work. The first multiplied everything together it looked like.
Here was my code:
>> COMPUTE Causes= 1*PhysAb + 2*SexAb + 4*Neglect + 8*Alcohol + 16* ...
Notice that the multipliers increase, not 1,2,3,4, ..., - but rather,
1,2,4,8,16 ...
This will get you ALL the possible 37,628 combinations of 15 items,
which is something that I believe you do not really want. I have done
this with 4 or 5 items: those give 16 or 32 categories, which is
(IMO) about enough before trying something else.
One thing to try might be to use the 4 most important reasons
as themselves, plus one more as "any other reason".
Under the rubric of "data reduction", you could try a factor analysis
to lead to the creation of a few "factors" that might be either "any
of A, B, C, or D" or "The number marked of A, B, C, and D". But
reducing the number of categories would be a priority for me.
> The second method did give me what looked right once I ran a frequenicy. I had a table with 1-15 listed. However, when I attempted to match the numbers from the table to the dichotomous variable frequencies, none of them matched.
Right. And Proper. And logical. Perhaps you might use
"Mult-Response" to look at some frequencies and crosstabs
If there are 15 separate variables, you keep all the combinations
as I did above; your single, new variable has to shed a lot
of distinctions if it is going to have a small number of categories.
I offered to transform (what turns out to be) 15 items to a
new variable, "Most important of the 15".
You can compute that by (a) setting to the first one encountered
when listed from Most to Least, and skipping further tests; or
(b) test from Least to Most, setting to each one when it is
encountered, so that the Most important encountered is the
value left in the variable after testing the whole list.
Thus, the only one that is likely to match is the result of the final
item. "Last-listed (most important)" as I said. To repeat:
>> IF (reasons EQ 1) Causes= code.
- is my code that replaces the result of every previous test,
whenever (Reasons EQ 1). [I usually put that IF condition
inside of parentheses, for clarity, but the parens are optional
in SPSS.] I showed the list in reverse-order in order that the
most-important would end up as coded "1".
When the count shows "most important", then it should be
apparent that any person who marked off more than one
Reason is not going to have that second or third reason
shown in the total.
>
>For instance, physical abuse should have been 15 on the new chart or possibly 1. This is one reason I wanted to check to make sure I paired them correctly. On the new chart, 15 has a frequency of 32,636 and 1 has a frequency of 67.736. Physical abuse, though, had a yes frequency of 90,659. That number was not anywhere in the new chart. None of the yes frequencies from the dichotomous variables ended up in the new chart.
So: You need to decide what you want your new variable
to include. If it going to have only 15 categories, it is NOT
going to have all possible 37000+ combinations.
I now conclude... You PROBABLY want more than one variable.
You want to know about a few important combinations.
Perhaps you can use my binary coding that uses 1,2,4,8
for the most important, and after that, see what remains
that is worth mentioning.
- Try to imagine a "nice writeup" of your sort of data. What
would it report on?
>
>Here is the syntax I used for the first way:
>
>COMPUTE Causes= 1*PHYABUSE + 2*SEXABUSE + 3*NEGLECT + 4*AAPARENT + 5*DAPARENT + 6*AACHILD + 7*DACHILD + 8*CHILDIS + 9*CHBEHPRB + 10*PRTSDIED + 11*PRTSJAIL + 12*NOCOPE + 13*ABANDMNT +14*RELINQSH + 15*HOUSING
>
>And here is the syntax I used for the second way:
>
>COMPUTE Causes= 0.
>DO REPEAT reasons= PHYABUSE, SEXABUSE, NEGLECT, AAPARENT, DAPARENT, AACHILD, DACHILD, CHILDIS, CHBEHPRB, PRTSDIED,PRTSJAIL,NOCOPE, ABANDMNT, RELINQSH, HOUSING
> / code= 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1.
>IF reasons EQ 1 Causes= code.
>END REPEAT.
>
--
Rich Ulrich