Question: 1. Consider a data frame called myDF that contains only two factor variables. Enter the R command that produces a two-way (contingency) table of this

1. Consider a data frame called myDF that contains only two factor variables. Enter the R command that produces a two-way (contingency) table of this data.

 

2. Presume you've created an R table myTable that is a two-by-two table. (So if you simply type in myTable at the R prompt, R will output the two-by-two table.) Enter the R command that produces the two-by-two row proportions table.

 

3. Presume you've created an R table myTable that is a two-by-two table. (So if you simply type in myTable at the R prompt, R will output the two-by-two table.) Enter the R command that produces the column totals.

 

4. Presume you've created an R table myTable that is a two-by-two table. (So if you simply type in myTable at the R prompt, R will output the two-by-two table.) Enter the R command that produces the row totals.

Step by Step Solution

3.40 Rating (147 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here are the R commands to perform the t... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!