Download S-PLUS 8 for Windows User's Guide
Transcript
Compare Samples Setting up the data We create a cancer data set containing the information in Table 6.4. 1. Open an empty data set by clicking the New Data Set button on the Standard toolbar. 2. Enter the two columns of observations listed in Table 6.4. Change the column names by first double-clicking on V1 and typing in smokers, and then double-clicking on V2 and typing in patients. Press ENTER or click elsewhere in the Data window to accept the changes. 3. Rename the data set by double-clicking in the upper left corner of the Data window. In the dialog that appears, type cancer in the Name field and click OK. Statistical inference For the cancer data, we are interested in whether the probability of a patient being a smoker is the same in each of the four studies. That is, we wish to test whether each of the studies involve patients from a homogeneous population. 1. Open the Proportions Test dialog. 2. Type cancer in the Data Set field. 3. Select smokers as the Success Variable and patients as the Trial Variable. 4. Click OK. A summary of the test appears in the Report window. The p value of 0.0056 indicates that we reject the null hypothesis of equal proportions parameters. Hence, we cannot conclude that all groups have the same probability that a patient is a smoker. Fisher’s Exact Test Fisher’s exact test is a test for independence between the row and column variables of a contingency table. When the data consist of two categorical variables, a contingency table can be constructed reflecting the number of occurrences of each factor combination. Fisher’s exact test assesses whether the value of one factor is independent of the value of the other. For example, this might be used to test whether political party affiliation is independent of 251
Related documents
spotfire s+! - TIBCO Product Documentation
Spotfire S+ User`s Guide for UNIX
Unix User Guide
S-PLUS User's Guide
S-PLUS 6 for Windows User's Guide
gaddsref
A la découverte de La Navette - Réseau National des Maisons des
DbgPlot User Manual - Microsoft Research
M86-E01007 GADDS User manual.book
sM-Client Projekt - sM-Client Releases
S-PLUS 6.0 for UNIX User's Guide