This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### poly | |
How does poly work? | |
```{r} | |
a <- 1:10 | |
# Let's start easy | |
p <- poly(a, 3, raw=TRUE) | |
p | |
# This is easy to reproduce |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import timeit | |
def func(x, y): | |
return x**2 + y**2 | |
def wrapper(func, *args, **kwargs): | |
"""This enables using a function with arguments with timeit""" | |
def wrapped(): | |
return func(*args, **kwargs) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
R Markdown, Population Sampling, & Confidence Intervals | |
======================================================== | |
Topics: | |
* Introduce R Markdown | |
* **Gain an intuitive understanding of the errors we introduce when we look at subsets of an entire population through:** | |
* population sampling | |
* linear models (coefficients, residuals, fitted.values) | |
* smoothScatter (example) | |
* confidence intervals |
NewerOlder