Question: Complete b)-d) in R using the psychiatric data from Problem 3. The data are in Psychiatrists.csv and variable definitions are in PsychiatristsDataDictionary.pdf. b) In the
Complete b)-d) in R using the psychiatric data from Problem 3. The data are in Psychiatrists.csv and variable definitions are in PsychiatristsDataDictionary.pdf. b) In the HW2 template, we provide code to produce a two-way contingency table with school of psychiatric thought in the rows and the origin of schizophrenia in the columns. Use the information in the contingency table, along with R as a calculator, to calculate the marginal percentages for the psychiatric school of thought? Explain to a layperson what is meant by these marginal percentages. [Hint: you will be reporting three percentages]. c) In the HW2 template, we have provided code that produces a new table that shows row conditional percentages instead of counts. What are the conditional percentages for the origin of schizophrenia for psychiatrists who identify with the eclectic school of psychiatric thought? What is meant, in layperson terms, when we refer to these conditional percentages? [Okay to use R as a calculator] d) In the HW2 template, we have provided code that produces one bar graph to explore the association between school of psychiatric thought and the origin of schizophrenia. Using this bar graph, do the variables school of psychiatric thought and the origin of schizophrenia appear to be associated (dependent) or do the variables appear to be independent. Explain. [Note: this is a qualitative answer based only on data visualization]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts

Study Help