100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
script bijhorend bij samenvatting STAT B $5.97
Add to cart

Summary

script bijhorend bij samenvatting STAT B

 8 views  0 purchase
  • Course
  • Institution

Met dit script, samen met samenvatting, behaalde ik 19/20 op het examen

Preview 2 out of 8  pages

  • September 11, 2024
  • 8
  • 2023/2024
  • Summary
avatar-seller
#PDF-principe

#Packages laden
library(car)
library(moments)
#R-bestand inladen
load(file.choose())
#Functies1 inladen
source(file.choose())
#Functies2 inladen
source(file.choose())



#handmatige methode voor pakketten inladen => aanklikken
#handmatige methode R-bestand inladen => file → open file
#csv-bestand inladen
Naam <- read.csv2(file.choose())
#handmatige methode CSV-Data inladen => import Dataset → From tekst (base) → (settings ok?) → import
#handmatige methode functies inladen => file → open file → source




KRUISTABEL

, #Data aanmaken
VariabeleRij <- c(rep(“A”, 99), rep(“B”, 50), rep(“C”, 110))
VariabeleKolom <- c(rep(“cat1”, 50), rep(“cat2”, 40), rep(“cat3”, 20), rep(“cat1”, 70), → 2 kwalitatieve (bivariaat)
rep(“cat2”, 10), rep(“cat3”, 2), rep(“cat1”, 5), rep(“cat2”, 410), → niet causaal
rep(“cat3”, 2))
1. kruistabel
#ordering behouden
2. statistische significantie
VariabeleRij <- ordered(VariabeleRij, levels=c(“A”, “B”, “C”))
3. effectgrootte
VariabeleKolom <- ordered(VariabeleKolom, levels=c(“cat1”, “cat2”, “cat3”))
4. associatieplot (visualisatie)

#variabelen (en frequenties) bekijken
table(Data$Variabele)


#Kruistabel maken
Kruistabel <- table (Data$VariabeleRij, Data$VariabeleKolom)


#Marginalen in output opvragen; zowel kolommarginalen als rijmarginalen
addmargins(Kruistabel)
#Marginalen in output opvragen; alleen kolommarginalen
addmargins(Kruistabel, 1)
#Marginalen in output opvragen; alleen rijmarginalen
addmargins(Kruistabel, 2)


#Kruistabel met de totaalproporties (tussen 0 en 1) of totaalpercentages (tussen 0 en 100)
prop.table(Kruistabel)
prop.table(Kruistabel)*100
#Kruistabel met rijproporties
prop.table(Kruistabel, 1)
#Kruistabel met kolomproporties
prop.table(Kruistabel, 2)


#kruistabel met kolompercentages en percentage rijmarginalen
kruistabel.kolom(Data$VariabeleRij, Data$VariabeleKolom)
kruistabel.kolom(Kruistabel)
#tabel met rijpercentages en percentage kolommarginalen
kruistabel.rij(Data$VariabeleRij, Data$VariabeleKolom)
#Chi-kwadraattoets
chisq.test(Kruistabel)


#Chi-kwadraattoets, Cramer’s V en 95% betrouwbaarheidsinterval rond Cramers’s V → effectgrootte
chi.kwadraat.test(table(Data$VariabeleRij, Data$VariabeleKolom))
of
chi.kwadraat.test(Kruistabel)


#visualisatie
#!!! tabel in juiste volgorde…
assocplot(table(Data$VariabeleKolom, Data$VariabeleRij))


T-TEST

→ 1 kwalitatieve met 2 categorieën

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller StudentUantwerpenOOW. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $5.97. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

52355 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$5.97
  • (0)
Add to cart
Added