| To: | <s-news@lists.biostat.wustl.edu> |
|---|---|
| Subject: | difficulties with Wilcoxon test |
| From: | "Roland Knapp" <knapp@lifesci.ucsb.edu> |
| Date: | Mon, 24 Mar 2003 13:49:30 -0800 |
| Importance: | Normal |
| Organization: | University of California |
| Reply-to: | <knapp@lifesci.ucsb.edu> |
|
I have a dataset
made up of two columns, one a factor variable with two levels and the second a
continuous variable ("days"). I want to evaluate the magnitude of
differences in column 2 with column 1 as a grouping variable using a Wilcoxon
rank sum test. The following code
wilcox.test(days[ssealii=="0"], days[ssealii=="1"]) produces this result:
data: days[ssealii == "0"] and days[ssealii == "1"] rank-sum normal statistic with correction Z = NA, p-value = NA alternative hypothesis: true mu is not equal to 0 I am puzzled by the NAs for the Z value and P value, as I have run similar analyses many times before on similar datasets. In addition, if I use a t-test instead of the Wilcoxon rank sum test, I get t values and P values. The dataset consists of 2650 observations, and if I trim the dataset back in increments of 10 observations, the Wilcoxon test produces Z values and P values once I've reduced its size to 2630 observations. Thanks in advance for any insights into how to solve this one. Roland Knapp |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | extracting components of output, JedSimons |
|---|---|
| Next by Date: | Re: extracting components of output, Spencer Graves |
| Previous by Thread: | extracting components of output, JedSimons |
| Next by Thread: | assignment operator "=", Jack Lewis |
| Indexes: | [Date] [Thread] [Top] [All Lists] |