Displaying 2 results from an estimated 2 matches for "srres".
Did you mean:
rres
2004 Apr 08
0
R: lines and glm
...="response")
lines(seq(min(x), max(x), length.out=100), predProbs, col=2, lwd=2)
Note also that it is not a good idea to name "t" a R object, since the name is reserved for a special function.
Stefano
> -----Messaggio originale-----
> Da: Jan P. Smit [mailto:jps at srres.com]
> Inviato: gioved?? 8 aprile 2004 13.38
> A: r-help at stat.math.ethz.ch
> Oggetto: [R] lines and glm
>
>
> Dear R-helpers,
>
> I'm a beginner using R 1.8.1 on Windows 2000. I'm trying to
> replicate some
> examples in Franses' & Paap's Qua...
2004 Apr 08
2
lines and glm
Dear R-helpers,
I'm a beginner using R 1.8.1 on Windows 2000. I'm trying to replicate some
examples in Franses' & Paap's Quantitative Models in Marketing Research.
> t <- 1:1000
> e1 <- rnorm(1000)
> e2 <- rnorm(1000)
> x <- 0.0001*t+e1
> y2 <- -2+x+e2
> y <- ifelse(y2>0,1,0)
>
> plot(x, y, pch = 16, col = "darkblue",
+