Tell me more ×
Cross Validated is a question and answer site for statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.

Edit: I think this is a better question, Say, I have categorical characteristics such as gender, race. How should I use Fisher's test and chi-square test? I was looking at this: http://math.hws.edu/javamath/ryan/ChiSquare.html

end edit.

I want to do a hypothesis testing for cancer patients.

Everyone is admitted to the hospital, a small portion went developed cancer, while the rest didn't. The dependent variable is categorical, not numerical, meaning something like severe, mild, and unknown.

How should I give a hypothesis test? Is it possible? Thanks!

Edit: The data analyst used Fisher's Exact or Chi-squared test. I don't know how I can do that, R asks the 2 test groups of equal length

share|improve this question
Are you only interested in the severity of those who do have cancer, or also of the characteristics of those who develop cancer compared to those who don't? – Peter Ellis Sep 23 '12 at 0:50

4 Answers

Sounds like you want ordinal logistic regression. The hypothesis would be something like:

Null: The IVS were not related to the severity of XXX Alt: The IVS were related to the severity of XXX

You can do ordinal logistic regression in R, SAS or many other programs. I wrote a presentation on ordinal logistic using SAS, but some of it will apply more generally.

But "unknown" as a category worries me. That's not ordinal, that's missing data. Or do you mean that those people didn't get cancer?

share|improve this answer
unknown is another category, not missing value. There are 3 categories in total, unknown is the name of one of the categories. – user1061210 Aug 21 '12 at 20:57
1  
Hard to see how a person can pick up logistic regression when the Chi-Square Test is posing problems. – rolando2 Aug 21 '12 at 22:47
@rolando2 True, but perhaps the person cannot do the analysis him/her self. Sometimes the best answer is "find an expert". – Peter Flom Aug 22 '12 at 12:09
I see -- Fair enough! – rolando2 Aug 23 '12 at 3:24

The following is a tutorial that may help you:

http://ww2.coastal.edu/kingw/statistics/R-tutorials/independ.html

share|improve this answer
thanks, that is very helpful! – user1061210 Aug 21 '12 at 21:19

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer: please explain why you're recommending it as a solution. Answers that don't explain anything will be deleted. See Good Subjective, Bad Subjective for more information.

The categorical responses have distributions (e.g. the percentage that answer severe, the percentage that answer mild and the percentage that answer unknown. You can do a test of the null hypothesis that the distributions are the same for both groups vs the alternative that they differ.

To the revised question I would answer that you can construct the 3x2 contingency table with no restriction on the number of counts in each cell or column or row of cells and apply the Fisher test. A good contingency table analysis program written in R should allow you to do that.

share|improve this answer

I am doing an experiment which is also all categorical, I think you need to run a Normality test to determine whether the data is normal or not normal. Then based on that you can choose to run a parametric(normal) or a non-parametric( not normal) chi-squared analysis. By the way the tutorial provided is a journal or just a tabulation of information. Thanks, by the way, I think its true but could you state your IV and DV? If all are categorical then a Chi Square test is possible, but due to limitation of the test, when analysing the data can be a bit tough due to restrictions of the Chi Square test.

share|improve this answer
1  
Welcome to the site, @Marz1. I don't quite follow your answer. You may want to read our FAQ, which contains info on answering questions. – gung Sep 23 '12 at 3:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.