Re: [R] How to correct my error message

2020-11-03 Thread varin sacha via R-help
Many thanks Duncan, It works ! Best. Le mardi 27 octobre 2020 à 20:49:25 UTC+1, Duncan Murdoch a écrit : On 27/10/2020 3:06 p.m., varin sacha via R-help wrote: > Dear R-experts, > > Here below my R code. The warning message is not a problem to me but there is > an error messag

Re: [R] How to correct my error message

2020-11-03 Thread varin sacha via R-help
Dear All, Many thanks for your responses. I got it ! Best, Le mardi 27 octobre 2020 à 21:16:50 UTC+1, Md. Moyazzem Hossain a écrit : Dear Varin, I think the following code will solve your problem. n <- 60 b <- runif(n, 0, 5) a <- runif(n, 0, 5) z1 <- data.frame(x0=1:57,        

Re: [R] How to correct my error message

2020-10-27 Thread Md. Moyazzem Hossain
Dear Varin, I think the following code will solve your problem. n <- 60 b <- runif(n, 0, 5) a <- runif(n, 0, 5) z1 <- data.frame(x0=1:57, x1=rnorm(n*0.95,2,3)) z2 <- data.frame(x0=58:60, x1=rnorm(n*0.05,2,9)) combined=rbind(z1,z2) z=combined[,2] y_model <-

Re: [R] How to correct my error message

2020-10-27 Thread Duncan Murdoch
On 27/10/2020 3:06 p.m., varin sacha via R-help wrote: Dear R-experts, Here below my R code. The warning message is not a problem to me but there is an error message more problematic. I understand the error message but I don't know if it is possible to correct the error and if yes, how to corr

Re: [R] How to correct my error message

2020-10-27 Thread Sarah Goslee
Hi, a is of length 60. b is of length 60. z is of length 57. What do you expect to have happen when you create y_model ? What happens to those other 3 observations? Sarah On Tue, Oct 27, 2020 at 3:07 PM varin sacha via R-help wrote: > > Dear R-experts, > > Here below my R code. The warning mes

[R] How to correct my error message

2020-10-27 Thread varin sacha via R-help
Dear R-experts, Here below my R code. The warning message is not a problem to me but there is an error message more problematic. I understand the error message but I don't know if it is possible to correct the error and if yes, how to correct it. Many thanks. n <- 60 b <- runif(n, 0, 5) a <-