This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
I: Question 1.9
library(knitr) library(psych) library(markdown)
mydata<-iris
a
150 obs
b
str(mydata)
Four continuous numerical variables: sepal length, sepal width, petal length, and petal width.
c
One categorical variable: species. three levels: setosa, versicolor, and virginica.
summary(mydata) describe(mydata)
II:
data(women)
install.packages(‘car’)
library(car)
attach(women) plot(weight, height, main=“Scatterplot”, xlab=“height”, ylab=“weight”, pch=19)
it is a cross-sectional data sets and the appropriate plot is the Scatter-Plot.