Hi Michael,

First of all thanks for your response.

I do know that if I make my stimation on a single data the regression has no
sense but it will be getting sense in the growing next estimations.

I change my asking doubt.

I want to use this regressions as a first filter. Only this.

Can anyone send information or webpages related with the use of mapply,
sapply (so that one can avoid loops)

Receive my apologuises if again my questions are too simple.


2011/9/12 R. Michael Weylandt <michael.weylandt@gmail.com>

> I may be totally off base with this, but I'm wondering what exactly this
> would suggest or why you want to do it. Specifically "multiple regression
> with only intercept" -- how is it multiple if you don't have any regressors?
> Furthermore, you want to run a "regression" on a single data point --
> really?
>
> Best I can figure, an "intercept-only" regression is basically just the
> mean of the data (if you have no variates, your best estimate as to the mean
> of what you'll see is, well, just the mean [plus or minus some stuff about
> the median we'll ignore here]....) If I'm right about this, use of the lm()
> function is far more powerful than you actually need and a simple cumulative
> rolling mean, in conjunction with the rev() function, will suffice.
>
> Maybe you could say more about this odd request and we could provide a
> little more guidance,
>
> Michael Weylandt
>
> On Mon, Sep 12, 2011 at 10:20 AM, Trying To learn again <
> tryingtolearnagain@gmail.com> wrote:
>
>> Hi all,
>>
>> I have a time series a column vector with the ordered data so that the
>> first
>> column is the first observation and so on.
>>
>> The fact is that I want to run a multiple regression with only intercept.
>>
>> My first task is to run the regression on the first observation (1 from
>> 276)
>> and at the same time the same type of regressión on the 275 data.
>>
>> Then, is to run a regression on 2 of the data (the first and the second
>> observation) and other with the 274 rest of observations....
>>
>> ...
>>
>> The final tram of the loop would the to run 1 regression with the 275
>> first
>> observations and one with the last observation.
>>
>> I want to save each pair of regression made in each loop.
>>
>> I have seen that the regression I want is
>>
>> data˜1
>>
>> But how Shoud I use mapply or sapply? To run avoind using loops?
>>
>> Thanks in advance¡¡¡
>>
>> Hope someone can send me examples similar o documents to try to make by my
>> own.
>>
>> I attach the data.
>>
>> ______________________________________________
>> R-help@r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
>

	[[alternative HTML version deleted]]

