Inflammatory intestinal diseases are chronic diseases that sometimes result with inflammation and cause a damage to anatomy of intestines.Here a dataset is prepared from a study of the adverse events of a drug on 117 patients affected by Crohn's disease (a chronic inflammatory disease of the intestines).Dataset is consisting of 117 observations on the following 9 variables.(To obtain more information about dataset please use robustbase::ChronD)
Question
According to CrohnD dataset of package robustbase please apply these 2 questions for desired parameters.
a) Firstly,draw a ggplot graph for each
1.BMI (Body-mass index)-age values
2.treat-age values
3.treat-BMI values
b) Secondly,please interpret graph3 very shortly. One of graph example ;
Please do not forget converting of age and treatment to factor while you are drawing.
In the graph2 and graph3,please use "jitter" for point positions.
Also the graphs may be very similar but the interpretations of each graph will be different.
link of data is: https://raw.githubusercontent.com/vincentarelbundock/Rdatasets/master/csv/robustbase/CrohnD.csv
library(dplyr)
library(readr)
library(ggplot2)
CrohnD<-read_csv("https://raw.githubusercontent.com/vincentarelbundock/Rdatasets/master/csv/robustbase/CrohnD.csv")
CrohnD
graph1<-ggplot(CrohnD,aes(BMI,age,col=as.factor(age)))+
geom_point()
graph1
graph2<-CrohnD%>%
ggplot(aes(treat,age,col=as.factor(treat)))+geom_point(position="jitter")
graph2
g3<- CrohnD %>%
ggplot(aes(treat,BMI,col=as.factor(treat)))+geom_point(position="jitter")
g3
#According to graph3,we can see when the BMI is increasing , placebo using in the treatment will be decreased because their effectiveness is less than other treatment types.Also drug1 (d1) is the most active drug in treatment of chronic inflammatory disease.
Originality
Please mark relevant information with x, (ex. [x])
Is this question
[x] Original
[ ] Inspired
[ ] Paraphrased or copied
If you select Inspired or Paraphrased please provide the links in markdown format ( [link](http://example.com) ). Please provide all relevant links. You can refer to DataCamp course pages if you're inspired by them.
Difficulty Level
According to you, what is the level of difficulty of the question (note: this can be modified by instructor after submission)
[x] Easy / Beginner (using a single command or concept is enough to solve the question)
[ ] Intermediate (combining multiple commands, concepts is needed to solve the question)
[ ] Difficult (combining multiple commands with non-default options and looking for additional information online might be needed)
Tags (optional)
Please provide comma separated list of dplyr verbs (e.g. summarize, left join) or concepts (e.g. text mining) that you think are relevant with question
Before submitting
Please click Preview and preview your submission and check if it's rendered correctly
Inflammatory intestinal diseases are chronic diseases that sometimes result with inflammation and cause a damage to anatomy of intestines.Here a dataset is prepared from a study of the adverse events of a drug on 117 patients affected by Crohn's disease (a chronic inflammatory disease of the intestines).Dataset is consisting of 117 observations on the following 9 variables.(To obtain more information about dataset please use robustbase::ChronD)
Question
According to CrohnD dataset of package robustbase please apply these 2 questions for desired parameters. a) Firstly,draw a ggplot graph for each 1.BMI (Body-mass index)-age values 2.treat-age values 3.treat-BMI values b) Secondly,please interpret graph3 very shortly. One of graph example ;
Originality
Please mark relevant information with x, (ex.
[x]
)Is this question
If you select
Inspired
orParaphrased
please provide the links in markdown format ([link](http://example.com)
). Please provide all relevant links. You can refer to DataCamp course pages if you're inspired by them.Difficulty Level
According to you, what is the level of difficulty of the question (note: this can be modified by instructor after submission)
Tags (optional)
Please provide comma separated list of dplyr verbs (e.g.
summarize
,left join
) or concepts (e.g.text mining
) that you think are relevant with questionBefore submitting
Preview
and preview your submission and check if it's rendered correctly