+ Reply to Thread
Results 1 to 4 of 4

Thread: test of proportion

  1. #1
    Fortran must die
    Points: 62,031, Level: 100
    Level completed: 0%, Points required for next Level: 0
    noetsi's Avatar
    Posts
    6,538
    Thanks
    693
    Thanked 916 Times in 875 Posts

    test of proportion




    I have forgotten my basic statistics...

    I have a group of people who answered two different questions. I have been asked to do a test of proportion to see if the percent who answered agree on the two questions is statistically significant. That is to see if there is a statistically significant differences between the number agreeing with one question and agreeing with another.

    I can do that of course, what I am not sure of is if you can do a test of proportion with the same population this way. All the examples I found are testing two different populations. Whether it makes sense to do a test at all when you have the whole population (which they do) is of course another question.
    "Very few theories have been abandoned because they were found to be invalid on the basis of empirical evidence...." Spanos, 1995

  2. #2
    Omega Contributor
    Points: 39,045, Level: 100
    Level completed: 0%, Points required for next Level: 0
    hlsmith's Avatar
    Location
    Not Ames, IA
    Posts
    7,070
    Thanks
    402
    Thanked 1,192 Times in 1,153 Posts

    Re: test of proportion

    Yup, chi-sq test given you don't have expected values in your 2x2 table </=5. So big picture you are looking to see if the proportion of people agreeing or disagreeing is the same for the other question.


    I am tired of hearing about your POPULATION


    If you think you have the end-all-be-all population, just don't look at the significance test and embrace the proportions.


    P.S., you can also use the "/relrisk" on the table line to get an effectsize.
    Stop cowardice, ban guns!

  3. The Following User Says Thank You to hlsmith For This Useful Post:

    noetsi (05-25-2017)

  4. #3
    Fortran must die
    Points: 62,031, Level: 100
    Level completed: 0%, Points required for next Level: 0
    noetsi's Avatar
    Posts
    6,538
    Thanks
    693
    Thanked 916 Times in 875 Posts

    Re: test of proportion

    I don't understand the point about a chi square. I want to do a test of proportions, are you saying that you can't with the same population or that a chi square test is better? All I have is the aggregate numbers, not individual responses.

    Just because I have tens of thousands of cases and you have to expend vast efforts to get 100, many of whom drop out of the intervention at inconvenient times, is no reason to get uppity on me

    I don't understand this at all.
    P.S., you can also use the "/relrisk" on the table line to get an effectsize.
    "Very few theories have been abandoned because they were found to be invalid on the basis of empirical evidence...." Spanos, 1995

  5. #4
    Omega Contributor
    Points: 39,045, Level: 100
    Level completed: 0%, Points required for next Level: 0
    hlsmith's Avatar
    Location
    Not Ames, IA
    Posts
    7,070
    Thanks
    402
    Thanked 1,192 Times in 1,153 Posts

    Re: test of proportion


    Code: 
    data noetsi;
     input q1 q2 count;
     datalines;
         1    1    560
        1    0    250
        0    1    200
        0    0    800
     ;
     
    
    
    
    proc freq data=noetsi order=data;
     table Q1*q2 / chisq relrisk;
     weight count;
     run;
    Reject null hypothesis of homogeneity of proportions and those answering agree to Q1 have 3.5 greater incident of answering agree to Q2 than those answering disagree to Q1.
    Stop cowardice, ban guns!

+ Reply to Thread

           




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts






Advertise on Talk Stats