nd several future projects
much more streamlined.
Regards,
Mendi
De : Rui Barradas
Cc : "r-help@r-project.org"
Envoyé le : Mercredi 3 avril 2013 3h43
Objet : Re: [R] Iterative regression through a series
Hello,
I've made a samll change t
"triskell4-umbre...@yahoo.fr"
Cc : "r-help@r-project.org"
Envoyé le : Mardi 2 avril 2013 11h51
Objet : Re: [R] Iterative regression through a series
Hello,
The error comes from NAs where you would expect coefficients. Try the
following.
set.seed(7511) # Make the example repro
> Mendi
>
>
>
> De : Michael Weylandt
> À : Rui Barradas
>
> @r-project.org"
> Envoyé le : Mardi 2 avril 2013 11h58
> Objet : Re: [R] Iterative regression through a series
>
> Also look at zoo's rollapply.
>
> MW
.
Mendi
De : Michael Weylandt
À : Rui Barradas
@r-project.org"
Envoyé le : Mardi 2 avril 2013 11h58
Objet : Re: [R] Iterative regression through a series
Also look at zoo's rollapply.
MW
On Apr 2, 2013, at 13:51, Rui Barradas wrote:
>
: Rui Barradas
Cc : "r-help@r-project.org"
Envoyé le : Mardi 2 avril 2013 11h51
Objet : Re: [R] Iterative regression through a series
Hello,
The error comes from NAs where you would expect coefficients. Try the
following.
set.seed(7511) # Make the example reproducible
N <-
Also look at zoo's rollapply.
MW
On Apr 2, 2013, at 13:51, Rui Barradas wrote:
> Hello,
>
> The error comes from NAs where you would expect coefficients. Try the
> following.
>
>
>
> set.seed(7511) # Make the example reproducible
>
> N <- 100
> Time <-1:N
> Price <- rnorm(N, 8, 2)
>
>
Hello,
The error comes from NAs where you would expect coefficients. Try the
following.
set.seed(7511) # Make the example reproducible
N <- 100
Time <-1:N
Price <- rnorm(N, 8, 2)
estim <- numeric(N) # It's better to allocate the results
error <- numeric(N) # vectors in advance
for (i
7 matches
Mail list logo