Displaying 2 results from an estimated 2 matches for "raffamaiden".
2019 May 25
3
Increasing number of observations worsen the regression model
I have the following code:
```
rm(list=ls())
N = 30000
xvar <- runif(N, -10, 10)
e <- rnorm(N, mean=0, sd=1)
yvar <- 1 + 2*xvar + e
plot(xvar,yvar)
lmMod <- lm(yvar~xvar)
print(summary(lmMod))
domain <- seq(min(xvar), max(xvar))??? # define a vector of x values to
feed into model
lines(domain, predict(lmMod, newdata = data.frame(xvar=domain)))??? #
add regression line, using
2019 May 27
0
[R] Increasing number of observations worsen the regression model
...gers somehow, which doesn't really seem credible, but you never know.)
I'm moving this to the r-devel list. It certainly is not for r-help.
-pd
> On 27 May 2019, at 10:47 , Ivan Krylov <krylov.r00t at gmail.com> wrote:
>
> On Sat, 25 May 2019 14:38:07 +0200
> Raffa <raffamaiden at gmail.com> wrote:
>
>> I have tried to ask for example in CrossValidated
>> <https://stats.stackexchange.com/questions/410050/increasing-number-of-observations-worsen-the-regression-model>
>> but the code works for them. Any help?
>
> In the comments you n...