• Mauvais document ? Échangez-le gratuitement
  • Rédigé par des étudiants ayant réussi
  • Disponible immédiatement après paiement
  • Lire en ligne ou en PDF
Vendre
Où étudie-tu ?
La langue
Document preview thumbnail
Aperçu 1 sur 21 pages
Resume

Practical 2: Advanced Data Analysis: full summary + explanations

Document preview thumbnail
Aperçu 1 sur 21 pages

A detailed description of each step of practical 2, including screenshots and explanations of the steps taken in R. This document includes everything that is seen in class, and all the exercises that are needed to be made for practical 2 of Advanced Data Analysis of the first master of Biomedical Sciences. Only includes practical 2. Does not include the take home assignment.

Aperçu du contenu

Practical 2 : Statistical analysis is R
Before you start :
- Create a folder / directory on your PC where you put all files related to this practical
- Turn this folder into your working directory

setwd ( "C:/wherever your files are")



1. Demo : the independent sample t-test

Data in long format : ozoneLong.txt
Read in the dataset ozoneLong.txt. This small dataset contains measurements of ozone (O3) in
two gardens, labelled A and B.




White format: concentrations in the gardens in two separate columns: no paired data. Independent
observations.

In the long format, there is the same data but arranged differently: one column which tells you which
garden and one column which gives the value of the ozone.

Here we want to know if there is a difference in ozone concentrations between the 2 gardens. The
null hypothesis is there is no difference in ozone between the gardens.

- Parametric tests: e.g. T-test
o Only allowed if you have enough observations and the data has +- a normal
distribution
- If the conditions for parametric testing are not fulfilled, you do Mann-Withney U test

Use the formula interface: t.test(continuantVar~groupingVar,data=myData)

Comes back quite often: this is usually the first argument of some function about a statistical test.
Generally it is y~x with y being the dependent variable (in t.test= continuous variable, here ozone),
and x that defines the groups (which group an observation comes from). The third argument is the
data frame.

First explore the data :
- How are the data organized? Check the environment in RStudio, or the str() function.
What do the two variables mean?
- Generate a plot to visualize the ozone concentration in the two gardens

Plot(myData$garden,myData$ozone)
Gives automatically a boxplot.
Looks like the ozone concentrations are higher in garden B than in garden A.




1

Infos sur le Document

Cours
Publié le
19 mars 2022
Nombre de pages
21
Écrit en
2021/2022
Type
Resume
$6.75

Mauvais document ? Échangez-le gratuitement Dans les 14 jours suivant votre achat et avant le téléchargement, vous pouvez choisir un autre document. Vous pouvez simplement dépenser le montant à nouveau.
Rédigé par des étudiants ayant réussi
Disponible immédiatement après paiement
Lire en ligne ou en PDF

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
Bi0med
4.2
(61)
Vendu
572
Abonnés
202
Éléments
90
Dernière vente
1 mois de cela



Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Vous travaillez sur vos références ?

Créez des citations précises en APA, MLA et Harvard avec notre générateur de sources gratuit.

Vous travaillez sur vos références ?

Foire aux questions