Announcement

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

  • Comparing two groups of variables with each others

    Hi all, first of all, I would like to wish you happy holidays.

    I have a question about comparing two groups with each other. Just to outline the situation: I have two variables 'version' and 'risk tolerance'. The variable version can take two values, 0 or 1. The variable risktolerance can take 4 values (0 1 2 or 3).

    These variables come from a questionnaire where there was a default option for risk tolerance, namely value '2'.

    Now I would like to test whether this value '2' is indicated more in case the variable 'version' equals 0.

    If I use the 'tabulate risk tolerance' function, I nicely get all the absolute frequencies of this variable. However, it is something like this that I want to obtain, but split for version 0 and version 1.

    It seems simple and obvious, but I just can't find it... can someone help me out?

    Huge thanks in advance!
    Last edited by Nick De Decker; 24 Dec 2022, 09:17.

  • #2
    Code:
    tabulate version risk_tolerance

    Comment


    • #3
      Alright! Thank you so much, it worked!

      And how can I thest wheter option 2 of risk_tolerance in version 0 is significantly different from option 2 of risk tolerance in version 1?

      Comment


      • #4
        It seems I need an unpaired two-sample t test for this, but I'm not sure as I need to combine both variables for that?

        Comment


        • #5
          It seems I need an unpaired two-sample t test for this, but I'm not sure as I need to combine both variables for that? Also I think the two-sample t test is only for comparisons of the means? And I want to compare the how many times answer 2 is indicated in version 0 and how many times answer 2 is indicated in version 1. And compare if the this two groeps are significantly different from each other...
          Last edited by Nick De Decker; 26 Dec 2022, 06:04.

          Comment

          Working...
          X