Re: [R] Contingency table in R

From: Ista Zahn <izahn_at_psych.rochester.edu>
Date: Wed, 02 Mar 2011 11:23:18 -0500

Hi Laura,

On Wed, Mar 2, 2011 at 9:13 AM, Laura Clasemann <violagirl470_at_msn.com> wrote:
>
> Hi,
>
> I have a table in R with data I needed and need to create a contingency table out of it. The table I have so far looks like this:
>
>
>                   Binger
> r
> DietType     No Yes
>  Dangerous  15  12
>  Healthy    52   9
>  None      134  24
>  Unhealthy  72  23
>
> These are the error messages that I keep getting whenever I try to get a contingency table. I'm not sure why it won't work for me, any help would be appreciated!
>> nametable<-table(excat,recat)
> Error in table(excat, recat) : object 'excat' not found

That error seems pretty clear. The table function can't find the excat data. Is it in a data.frame or a list? Perhaps ?with will point you in the rigth direction.

Best,
Ista

>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology
http://yourpsyche.org

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 02 Mar 2011 - 16:36:37 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 02 Mar 2011 - 16:50:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive