100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

answers mandatory test take-home assignment

Puntuación
-
Vendido
-
Páginas
8
Grado
9-10
Subido en
05-04-2025
Escrito en
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 :)

Mostrar más Leer menos
Institución
Grado








Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
Estudio
Grado

Información del documento

Subido en
5 de abril de 2025
Número de páginas
8
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

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
$7.33
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor
Seller avatar
biomedstudent2324

Conoce al vendedor

Seller avatar
biomedstudent2324 Universiteit Antwerpen
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
1
Miembro desde
1 año
Número de seguidores
0
Documentos
5
Última venta
7 meses hace

0.0

0 reseñas

5
0
4
0
3
0
2
0
1
0

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes