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

3. Introduction to R - Probability functions and Tables

Beoordeling
5,0
(1)
Verkocht
-
Pagina's
65
Geüpload op
08-07-2018
Geschreven in
2017/2018

Step by step walkthrough covering the use of the following functions rnorm() pnorm() rexp() pexp() pbinom() dbinom() ppois() table() tapply() sd() prop.table() Examples are provided along with questions and answers. link to sample data is provided in the presentation

Meer zien Lees minder
Instelling
Vak

















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

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
8 juli 2018
Aantal pagina's
65
Geschreven in
2017/2018
Type
Presentatie
Persoon
Onbekend

Onderwerpen

Voorbeeld van de inhoud

Introduction to R –
Probabilities and tables
Link to the data used is provided

,Let’s start at the beginning
• Open RStudio; create a new script
• Clear R’s memory
• Set your working directory to the same folder you used for the oth
sessions

,Let’s start at the beginning
• Open RStudio; create a new script
• Clear R’s memory
rm(list=ls())

• Set your working directory to the same folder you used for the oth
sessions
setwd(“C:/Users/dtros/Documents/Using R/Session 1”)

,
,Probability Distributions
R has functions for a variety of probability distributions

,Function rnorm()
• To begin let’s find out what rnorm() is
• Bring up this functions help file

,
,Function rnorm()
• To begin let’s find out what rnorm() is
• Bring up this functions help file
• Were you able to do it? Remember that you can bring up a functio
help file using
?rnorm
• This is the last function in the list for ‘Normal Distribution’
• The description of rnorm() is as follows – rnorm() generates
random numbers that are from a normal distribution
• Run the following
x <- rnorm(100000, mean = 0, sd = 1)

,
, Function rnorm()
• Run the following
x <- rnorm(100000, mean = 0, sd = 1)

• As you can see, including spaces does not make a difference at this
point, as long as you have used the correct arguments and have
placed them in the correct order
• This line of code has produced 100 000 values from a standard
normal distribution; with a mean of 0 and a standard deviation of 1
€2,67
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
dominique13
4,3
(3)

Ook beschikbaar in voordeelbundel

Beoordelingen van geverifieerde kopers

Alle reviews worden weergegeven
6 jaar geleden

5,0

1 beoordelingen

5
1
4
0
3
0
2
0
1
0
Betrouwbare reviews op Stuvia

Alle beoordelingen zijn geschreven door echte Stuvia-gebruikers na geverifieerde aankopen.

Maak kennis met de verkoper

Seller avatar
dominique13 University of Cape Town
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
7
Lid sinds
7 jaar
Aantal volgers
5
Documenten
21
Laatst verkocht
3 jaar geleden

4,3

3 beoordelingen

5
1
4
2
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 iDeal of creditcard en download je PDF-document meteen.

Student with book image

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

Alisha Student

Veelgestelde vragen