Skip to content

Commit

Permalink
Some small edits
Browse files Browse the repository at this point in the history
Deleted a pdf file, and made some small edits to data products files
  • Loading branch information
bcaffo committed Apr 25, 2014
1 parent cc7cf07 commit 4df12a6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Binary file removed 07_RegressionModels/lectureNotes/01_01.pdf
Binary file not shown.
18 changes: 9 additions & 9 deletions 09_DevelopingDataProducts/manipulate/index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ manipulate(plot(1:x), x = slider(1, 100))
---
## Example from the regression class
```
freqData <- as.data.frame(table(galton$child, galton$parent))
names(freqData) <- c("child", "parent", "freq")
plot(as.numeric(as.vector(freqData$parent)),
as.numeric(as.vector(freqData$child)),
pch = 21, col = "black", bg = "lightblue",
cex = .05 * freqData$freq,
xlab = "parent", ylab = "child")
lm1 <- lm(galton$child ~ galton$parent)
lines(galton$parent,lm1$fitted,col="red",lwd=3)
library(manipulate)
myHist <- function(mu){
hist(galton$child,col="blue",breaks=100)
lines(c(mu, mu), c(0, 150),col="red",lwd=5)
mse <- mean((galton$child - mu)^2)
text(63, 150, paste("mu = ", mu))
text(63, 140, paste("MSE = ", round(mse, 2)))
}
manipulate(myHist(mu), mu = slider(62, 74, step = 0.5))
```

2 changes: 1 addition & 1 deletion 09_DevelopingDataProducts/shiny/index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ shinyUI(pageWithSidebar(
```

---
![markup](fig/markup.png 'Marup in ui.R')
![markup](fig/markup.png 'Markup in ui.R')


---
Expand Down

0 comments on commit 4df12a6

Please sign in to comment.