0% found this document useful (0 votes)
2 views1 page

1

The document outlines exercises for a session on descriptive statistics involving univariate data and modeling. It includes tasks such as importing datasets, calling column names, calculating statistical measures for variables, renaming columns, and creating boxplots and density functions. The exercises utilize datasets like BETACAR2, ChickWeight, and monica to practice statistical analysis in R.

Uploaded by

irenevolpe3
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

1

The document outlines exercises for a session on descriptive statistics involving univariate data and modeling. It includes tasks such as importing datasets, calling column names, calculating statistical measures for variables, renaming columns, and creating boxplots and density functions. The exercises utilize datasets like BETACAR2, ChickWeight, and monica to practice statistical analysis in R.

Uploaded by

irenevolpe3
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Univariate Data and Modelling – Exercises

Session 1 – Descriptive statistics


Exercise 1

a) Import BETACAR2 dataset as beta.df

Exercise 2

a) Call the column names of beta.df

Exercise 3

a) Import the ChickWeight dataset as chick.df


b) Call the column names of chick.df
c) Give the mean, median, quartiles, variance and standard deviation of the “weight” variable
d) Do the same for the “chicken” variable. Does this make sense? Any solutions?
e) Change the name of the “chicken” variable in “No.”
f) Give the mean, median, quartiles, variance and standard deviation of the “weight” variable by
feed
g) Give the frequency table of the feed used in the experiment

Exercise 4

a) Import the monica dataset as monica.df


b) Give the mean, median, quartiles, variance and standard deviation of the “age” variable by sex
c) Draw a boxplot of the “age” variable
d) Draw a separate boxplot of the “age” variable for each sex
e) Draw (by hand) a possible density function of the age of the population for each sex
f) Draw (in R) an estimation of the density function of the age of the population for each sex

You might also like