Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
About
People
Publications
Teaching
Resources
Research Blog
Wiki Functions
Recent changes
Help
Licensing
Page
Discussion
Edit
View history
Editing
Statistics and Statistical Programming (Winter 2017)/R lecture outline: Week 4
From CommunityData
Jump to:
navigation
,
search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
* keys stuff for building confidence intervals and p-values: ** compute a sample standard error just like we did in the book, but in R ** t.test() with one sample (build a confidence interval) * two things I showed in class which are super useful: ** sort.list() ** complete.cases() * doing something repeatedly: ** just define a function and then apply it to a list of things ** if you to output something in the middle: you use the print() function * briefly covered: ** distribution functions: lets focus on *unif(): the key is on page 222 of Verzani *** The βdβ functions return the p.d.f. of the distribution **** dunif(x=1, min=0, max=3) # 1/3 of the area is the to the left 1 *** The βpβ functions return the c.d.f. of the distribution. **** dunif(q=2, min=0, max=3) #1/(b-a) is 2/3 *** The βqβ functions return the quantiles. **** qunif(p=0.5, min=0, max=3) # half way between 0 and 3 *** The βrβ functions return random samples from a distribution. **** runif(n=1, min=0, max=3) # a random value in [0,3] * doing simple simulations with random data ** runif() ** rnorm() * running quick simulations ** write a function to repeatedly take the minimum from a sample ** experiment by changing the size of the sample == Skipped for now == * ordered() β really just a type of factor for ordinal data
Summary:
Please note that all contributions to CommunityData are considered to be released under the Attribution-Share Alike 3.0 Unported (see
CommunityData:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)
Tools
What links here
Related changes
Special pages
Page information