s-news
[Top] [All Lists]

[S] Data Frames, Tables, and Chi2

To: s-news@wubios.wustl.edu
Subject: [S] Data Frames, Tables, and Chi2
From: Erin Hodgess <hodgess@uhdux2.dt.uh.edu>
Date: Mon, 22 Jun 1998 18:13:40 -0500
Sender: owner-s-news@wubios.wustl.edu
Dear S+ ers:

I have a data frame with a column with gender and a column with ethnicity.
I would like to do two things:
A.  Produce a contingency table with Gender vs. Ethnicity;
B.  Perform a chi-square test on that table from part A.

I have been working with "factor" and "table", but no luck so far.
The data frame was imported from an Excel file, so I believe that the
data itself will all be in "list" classes.

Thanks in advance for your help.

Sincerely,
Erin Hodgess
Assistant Professor
Dept. of Computer and Mathematical Sciences
University of Houston -- Downtown
e-mail: hodgess@uhdux2.dt.uh.edu
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>