Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • calculate score in Stata

    Hello,
    I gave variables like this:

    Click image for larger version

Name:	skrinsyut stata.png
Views:	1
Size:	9.6 KB
ID:	1708309


    Which means:
    0. Not using
    1. Pill
    2. IUD
    3. Injections 3 month
    4. Male condom
    5. Female sterilization
    6. Male sterilization
    7. Periodic abstinence
    8. Withdrawal
    9. Other traditional
    10. Implants/Norplant
    11. Lactational amenorrhea (LAM)
    12. Other modern methods
    13. Injection 1 month
    I want to calculate the score; for example, the score is 1 if using a pill, 2 if using female sterilization, 3 if using other modern methods, etc. Then I want to determine the cut-off-point using ROC. How should I write a command in Stata? Hopefully, someone can help me

  • #2
    Welcome to Statalist!

    We would like to help, please provide more information, and avoid posting your code as a picture (whenever possible) .. see here please https://www.statalist.org/forums/help#basic
    Sincerely regards,
    Abdullah Algarni
    [email protected]

    Comment

    Working...
    X