Announcement

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

  • Transform multiple response dataset from polytomous mode into indicator mode

    Hello. I would like to ask if there is a Stata command to transform multiple response dataset from polytomous mode into indicator mode. Thank you in advance.

  • #2
    Donald:
    welcome to this forum.
    Do you mean -pca-?
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      Hi Carlo,

      It is not PCA. I am referring to the structure of the multiple response dataset. I am aware that there are two types of data structures for multiple responses variable: polytomous mode and indicator or dichotomous mode (as demonstrated below). Is there a Stata command to directly transform multiple response data from polytmous mode into indicator or dichotomous mode and vice versa? Thanks in advance.

      Polytomous mode
      id q1_1 q1_2 q1_3 q1_4 q1_5 q1_6
      1 1 6 0 0 0 0
      2 5 2 1 0 0 0
      3 5 0 0 0 0 0
      4 3 0 0 0 0 0
      5 6 3 0 0 0 0
      Indicator or dichotomous mode
      id value_1 value_2 value_3 value_4 value_5
      1 1 0 0 0 1
      2 1 1 0 1 0
      3 0 0 0 1 0
      4 0 0 1 0 0
      5 0 0 1 0 1

      Comment

      Working...
      X