100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Tentamen (uitwerkingen)

answers mandatory test take-home assignment

Beoordeling
-
Verkocht
-
Pagina's
8
Cijfer
9-10
Geüpload op
05-04-2025
Geschreven in
2024/2025

This document contains all the answers from the questions in the take-home assignment. 7 questions from the mandatory test were questions from the take-home assignment and the practical 2 notes and 2 questions were surprise questions but similar (with a different dataset). I answered all the questions and used this document, together with the document where I also answered the questions in the practical 2 notes and the R script. I used all three during the exam and got a 9/10 on the test. If you bring these 3 with you to the exam, you'll have already a guaranteed 25% on your final exam! Since I cannot upload all three documents in one, you can always message me and I'll also send you the answers from the practical 2 notes and the R script :)

Meer zien Lees minder








Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Documentinformatie

Geüpload op
5 april 2025
Aantal pagina's
8
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Voorbeeld van de inhoud

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.

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

Research question is whether the mean O3 concentration differs between the two gardens.
The most common parametric and non-parametric tests to test this hypothesis are the
independent sample t-test and the Mann-Withney U test, respectively.

Check out the help function for the independent samples t-test in R. With the data in long
format, the most convenient way to carry out the t-test is using the formula interface.

?t.test

Carry out the t-test on the ozoneLong.txt dataset. Interpret the output on the screen :
- Is there a significant difference in mean O3 value between the two gardens
- What is the 95% confidence interval of the difference?

- Yes, because the p-value is less than 0.05 (= 0.001114539)

- [-3.0849115, -0.9150885]

To extract separate elements of the output, store the results of your t-test into an object

myResult <- t.test (… whatever code you used… )

The names() function tells you which elements can be extracted from this results-object

names(myResult)

Use the $ operator to extract the following elements from the results object :
- P-value
- 95% confidence interval of the difference




1
€5,56
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
biomedstudent2324

Maak kennis met de verkoper

Seller avatar
biomedstudent2324 Universiteit Antwerpen
Bekijk profiel
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
1
Lid sinds
1 jaar
Aantal volgers
0
Documenten
5
Laatst verkocht
5 maanden geleden

0,0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Veelgestelde vragen