100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

R CODE SAMENVATTING EXPERIMENTEEL EN CORRELATIONEEL ONDERZOEK (ECO)

Rating
-
Sold
-
Pages
9
Uploaded on
20-03-2025
Written in
2024/2025

Een samenvatting van alle r code uit het werkboek per week ingedeeld, makkelijk terug te vinden welke code je waarvoor moet gebruiken.

Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Course

Document information

Uploaded on
March 20, 2025
Number of pages
9
Written in
2024/2025
Type
Summary

Subjects

Content preview

Week 1

Scatterplot maken (samenhang twee numerieke variabelen)


plot(x = , y = )



Scatterplot bewerken




Correlatie tussen twee variabelen berekenen

cor (x = , y = , method = )

Method is automatisch pearson r, ''spearman'' of ''kendall'' kan ook



Toetsen of een correlatie significant afwijkt van 0

cor.test(x = , y = , method = )



Tweezijdige p waarde voor een bepaalde waarde in een t verdeling

2 * pt( , df = , lower.tail = )

, WEEK 2

Enkelvoudige regressieanalyse

Als we bijvoorbeeld de variabele grade willen voorspellen op basis van de variable study
hours en het resultaat willen opslaan als een object met de naam sim reg ziet de code
er als volgt uit:

sim reg <− lm(formula = grade ∼ study hours, data = exam)

Voor resultaten :summary ()




Betrouwbaarheidsinterval voor een regressiecoefficient

confint (object = , level = )

Voor 95% betrouwbaarheidsinterval level = 0.95



Regressielijn toevoegen aan scatterplot

abline( )

Bij () kan

1. abline(object)
2. abline(lm(formula = , data = ))
3. Waarden van regressiecoefficient: abline(a=, b=)



Regressielijn bewerken




Eenzijdige Kritieke t waarde vinden voor 95% betrouwbaarheidsinterval

qt(0.975, df=, lower.tail = TRUE)
R110,85
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
mirandasnoesje

Get to know the seller

Seller avatar
mirandasnoesje Hogeschool Arnhem en Nijmegen
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
5 year
Number of followers
0
Documents
1
Last sold
-

0,0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions