Re: [R] Adjusting length of series

2012-07-02 Thread arun
_ From: "Lekgatlhamang, lexi Setlhare" To: arun Cc: R help Sent: Monday, July 2, 2012 11:43 AM Subject: Re: [R]  Adjusting length of series Thanks very much A.K. I have to admit that my problem was not clearly stated, with the structure of my data provided. Now all is well.

Re: [R] Adjusting length of series

2012-07-02 Thread Lekgatlhamang, lexi Setlhare
Thanks very much A.K. I have to admit that my problem was not clearly stated, with the structure of my data provided. Now all is well.   Cheers Lexi Cc: R help Sent: Monday, July 2, 2012 4:40 PM Subject: Re: [R] Adjusting length of series Hello, The

Re: [R] Adjusting length of series

2012-07-02 Thread Lekgatlhamang, lexi Setlhare
Noted David, and thanks very much.   Lexi From: David Winsemius Sent: Monday, July 2, 2012 4:26 PM Subject: Re: [R] Adjusting length of series On Jul 2, 2012, at 5:13 AM, Lekgatlhamang, lexi Setlhare wrote: > Hi David and AK, > I have been try

Re: [R] Adjusting length of series

2012-07-02 Thread arun
2.046024e- #Same result Not sure what you meant by ("This is good, but couldn't I code the process for my 15 variable model?") A.K. ____________ From: "Lekgatlhamang, lexi Setlhare" To: arun Cc: R help Sent: Monday, July 2, 2012 5:13 AM Subject:

Re: [R] Adjusting length of series

2012-07-02 Thread David Winsemius
On Jul 2, 2012, at 5:13 AM, Lekgatlhamang, lexi Setlhare wrote: Hi David and AK, I have been trying to implement your suggestions since yesterday, but I encountered some challenges. As for David's suggestions, I could only implement it after some modifications. Using an abridged version o

Re: [R] Adjusting length of series

2012-07-02 Thread Lekgatlhamang, lexi Setlhare
Hi David and AK, I have been trying to implement your suggestions since yesterday, but I encountered some challenges.   As for David's suggestions, I could only implement it after some modifications. Using an abridged version of my data, I dpud my dataset and then show my steps below.   > dp

Re: [R] Adjusting length of series

2012-07-01 Thread Lekgatlhamang, lexi Setlhare
Thanks a lot David and A.K. for the detailed and helpful suggestions. Lexi Cc: R help Sent: Sunday, July 1, 2012 3:39 AM Subject: Re: [R] Adjusting length of series Hello, Try this: Dcr<-lapply(1:5,function(x) rnorm(10,15)) names(Dcr)<- c(

Re: [R] Adjusting length of series

2012-06-30 Thread arun
Hello, Try this: Dcr<-lapply(1:5,function(x) rnorm(10,15)) names(Dcr)<- c("Dcre1","Dcre2","Dcre3","Dcre4","Dcre5") #Works regCred<-lm(Dcr[[1]]~Dcr[[2]]+Dcr[[3]])  summary(regCred) #Works  regCred2<-lm(Dcre1~Dcre2+Dcre3,data=Dcr)  summary(regCred) # Do not work regCred3<-lm(Dcr[[1]][1:5]~Dcr[[4]]

Re: [R] Adjusting length of series

2012-06-30 Thread David Winsemius
On Jun 30, 2012, at 8:47 PM, David Winsemius wrote: On Jun 30, 2012, at 6:04 PM, Lekgatlhamang, lexi Setlhare wrote: Hi I have a follow up question, relating to subsetting to list items. After using the list and min(sapply()) method to adjust the length of the variables, I specify a dyna

Re: [R] Adjusting length of series

2012-06-30 Thread David Winsemius
On Jun 30, 2012, at 6:04 PM, Lekgatlhamang, lexi Setlhare wrote: Hi I have a follow up question, relating to subsetting to list items. After using the list and min(sapply()) method to adjust the length of the variables, I specify a dynamic regression equation using the variables in the li

Re: [R] Adjusting length of series

2012-06-29 Thread Lekgatlhamang, lexi Setlhare
amang, lexi Setlhare" To: Petr PIKAL Cc: R-Help Sent: Friday, June 29, 2012 1:24 AM Subject: Re: [R] Adjusting length of series Thanks a lot Peter. It is a learning process for me. From: Petr PIKAL Cc: R-Help Sent: Thursday, June 28, 2012 6:20 PM Subject

Re: [R] Adjusting length of series

2012-06-28 Thread Lekgatlhamang, lexi Setlhare
Thanks a lot Peter. It is a learning process for me. From: Petr PIKAL Cc: R-Help Sent: Thursday, June 28, 2012 6:20 PM Subject: Re: [R] Adjusting length of series Hi I use R for quite a long time and as I remember I did not use such assign paste i

Re: [R] Adjusting length of series

2012-06-28 Thread Petr PIKAL
Hi I use R for quite a long time and as I remember I did not use such assign paste i loop yet. Insted of such construct with polluting environment with plenty of objects named something(i)somethingelse it is always advisable to use lists. When you want to shorten variables to some common lengt