Not applicable
Posts: 0

# Proportion t-test

Okay I have a data set with the following layout

Gender Item1 Item2 Item3
0 4000 5000 3843
1 3000 5000 3454

Note: I made this set up, it's to get the general idea. I have 50 columns like this.

Gender 0 = Male, Gender 1 = Female. I want test the proportions for a difference. Where for example Men buy 4/7 of item one and Females do 3/7. I read a bunch of documentation, but all I can find is using proc freq. Can someone help me to figure out how to do this?
Posts: 2,125

## Re: Proportion t-test

A better topic for the SAS Statistical Procedures forum.

You seem to be missing a denominator. Or maybe you need to frame the question more completely. Are there 7 people? Probably not. Does each person examine an item and decide to buy it or not? Those answers are important to determining the correct or best test.

Just looking at the question as you have stated it, is 4/7 = 3/7? That is really a one-sample test of a proportion, is 4/7 = 0.5 . You can get that from FREQ using the BINOMIAL option.
Not applicable
Posts: 0

## Re: Proportion t-test

DOC, sorry if i posted this in the wrong area.

Clearly 4/7 is not =.5. Like I said, this is a VERY simplified data set. I have much more complex numbers and more of them. It was just away to show how my data is laid out.
Super Contributor
Posts: 286

## Re: Proportion t-test

I think what he's saying is the null hypothesis is p=0.5 and the claim is that p is different from 0.5, i.e. is 4/7 significantly different from 0.5?
Super Contributor
Posts: 281

## Re: Proportion t-test

> Clearly 4/7 is not =.5. Like I said, this is a VERY
> simplified data set. I have much more complex
> numbers and more of them. It was just away to show
> how my data is laid out.

Hard for me to believe you really have "complex numbers". Complex as in: square root of negative 1.

If you meant to say that you have a more complex dataset ... its really hard for us to know what to advise, as we can only see a very simple problem. If Doc's restatement of the issue doesn't meet your needs, then we need a much more clear description of what data you have, and what statistical comparisons you want to perform.
Not applicable
Posts: 0

## Re: Proportion t-test

Numbers should never be an issue, just the process

Gender Item1 Item2 Item3
0 3495 5000 3843
1 3458 5000 3454

I need to test for a difference between 50 items by gender. I have listed 3. I need to run a test of proportions against 0 and 1 for item 1. I need to also do the same thing for item 2, all the way up to item 50. I know it's easy to eyeball these, but i have to do it for 50 items where it gets a little more complicated.
Posts: 2,125
{"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0}