[R] improve efficiency of a loop

2009-05-30 Thread Nelson Villoria
iable. I tried to use lapply, but it seems to me that it is not adequate when you have a recursive situation such the one above. Any hint? I appreciate any help, Nelson Villoria __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/

[R] Adding a legend to R graph device with several plots (no to individual plots!)

2008-09-04 Thread Nelson Villoria
Dear Users, I already posted this question: it either went unnoticed, or it is to basic (if this is so, please sent me a hint). I would like to know if there is a way to add a common legend to an arrangement of plots. In the example below, I get four plots in my device. each one has a density for 1

[R] Adding a common legend to an arrangement of plots

2008-08-23 Thread Nelson Villoria
Dear Users, I would like to know if there is a way to add a common legend to an arrangement of plots. In the example below, I get four plots in my device. each one has a density for 1995 and one for 2006. I have found that using legend or smartlegend I can add a legend to each plot, but I am lookin

Re: [R] Restricted Least Squares

2008-08-16 Thread Nelson Villoria
ed on Greene and Seeks (REView of Economics and STATistics, 1991), but wanted to know if there was a package out there making things easier. Nelson Villoria On Sat, Aug 16, 2008 at 2:24 AM, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > On Sat, 16 Aug 2008, Nelson Villoria wrote: >

[R] Restricted Least Squares

2008-08-15 Thread Nelson Villoria
Dear R experts: Is there any package that estimates Restricted Least Squares? Specifically, If I want to fit: G = b0 + b1(Y) + a1(X1) + a2(X2) + a3(X3) + a4(X4) where Y, X1 to X4 are variables and b's and a's parameters to be estimated. I want to impose a1 + a2 + a3 + a4 = 0. Thanks, Nelson

[R] Matrix from List

2008-07-25 Thread Nelson Villoria
6621 33 26.44245 Why do.call did not index by year (i.e. 1995 and 2006) as it did before for 31 and 33? Any suggestion about how to accomplish this task? Help is greatly appreciated. Nelson Villoria __ R-help@r-project.org mailing list https://stat