iiiMatt / WiSe-2023-24

0 stars 1 forks source link

categorical variables: chi squared #12

Closed miamacarena closed 8 months ago

miamacarena commented 8 months ago

Finished up my part of the assignment regardin two kategorical variables. My function ouputs a chi squared test and a contingency table.

miamacarena commented 8 months ago

I think your explanation about the chi-squared test is useful, however I would propose that we output the information to the console instead of returning it in a list so that in the analysis in task 4 we only have to call your function.

Good point but how can I output the information on the console ? Can you help me out ?

smnehong commented 8 months ago

By doing cat("Hello\n") you can print something to the console. You can also output variables like cat(chisq_result, "\n").