Hi Everyone,
Please what code should I use if I want to have only observations where participants responded "Yes" to suicidal ideation, "Yes" to suicidal plan and then indicated the number of times they attempted suicide? I tried to use the drop if command, but it deleted all the participants who responded "No" and I cannot do a regression analysis if all those with "No" are deleted.
Ideation Plan Number of time attempted.
1531. Yes No 0 times
1532. No Yes 2 or 3 times
1533. No No 0 times
1534. Yes Yes 1 time
1535. No No 0 times
In the table above, how do delete observations/participants 1531, 1532, 1533, and 1535? I hope this clarifies things.
Thank you for your help in advance.
Please what code should I use if I want to have only observations where participants responded "Yes" to suicidal ideation, "Yes" to suicidal plan and then indicated the number of times they attempted suicide? I tried to use the drop if command, but it deleted all the participants who responded "No" and I cannot do a regression analysis if all those with "No" are deleted.
Ideation Plan Number of time attempted.
1531. Yes No 0 times
1532. No Yes 2 or 3 times
1533. No No 0 times
1534. Yes Yes 1 time
1535. No No 0 times
In the table above, how do delete observations/participants 1531, 1532, 1533, and 1535? I hope this clarifies things.
Thank you for your help in advance.
Comment