Re: [R] which alternative tests instead of AIC/BIC for choosing models

2008-08-21 Thread Pedro.Rodriguez
Hi Ben,

Try the following reference:

Implementing Statistical Criteria To Select Return Forecasting Models:
What do We Learn? By Peter Bossaerts and Pierre Hillion, Review of
Financial Studies, Vol. 12, No. 2.

I have created an R function which implements Bossearts and Hillion's
methodologies. If you need it, I will more than happy to post them
online.   

Please let me know if you need additional information. 

Kind Regards,

Pedro N. 



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Ben Bolker
Sent: Wednesday, August 13, 2008 5:38 PM
To: [EMAIL PROTECTED]
Subject: Re: [R] which alternative tests instead of AIC/BIC for
choosingmodels


> > Dear R Users,
> >
> > I am looking for an alternative to AIC or BIC to choose model
parameters.
> > This is somewhat of a general statistics question, but I ask it in
this
> > forum as I am looking for a R solution.
> >
> > Suppose I have one dependent variable, y, and two independent
variables,
> > x1 an x2.
> >
> > I can perform three regressions:
> > reg1: y~x1
> > reg2: y~x2
> > reg3: y~x1+x2
> >
> > The AIC of reg1 is 2000, reg2 is 1000 and reg3 is 950. One would,
> > presumably, conclude that one should use both x1 and x2.  However,
the
> > R^2's are quite different: R^2 of reg1 is 0.5%, reg2 is 95% and reg3
is
> > 95.25%. Knowing that, I would actually conclude that x1 adds litte
and
> > should probably not be used.
> >
> > There is the overall question of what potentially explains this
outcome,
> > i.e. the reduction in AIC in going from reg2 to reg3 even though R^2
does
> > not materially improve
> > with the addition of x1 to reg 2 (to get to reg3). But that is more
of a
> > generic statistics issue and not my question here.
> >

  I know you didn't ask the "generic statistics question", but
I think it's fairly important.  I suspect the reason that
you're getting (what you consider to be) a "spurious" result
that includes x1, or equivalently that your delta-AICs are
so big, is that you have a huge data set.  Lindsey (p. 15)
talks a bit about calibration that changes with the size of 
the data set.

  Model 3 will very probably give you better predictive power
than model 2.  If you want to select on the basis of improvement
in R^2, why not just do that?

  Ben Bolker

Lindsey, J. K. 1999. Some Statistical Heresies. The Statistician 48, no.
1: 1-40.

__
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.

__
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.


Re: [R] which alternative tests instead of AIC/BIC for choosing models

2008-08-14 Thread tolga . i . uzuner
Dear Prob. Ripley,
Thanks for this, now appreciating the point about Cp significantly more.
Tolga




Prof Brian Ripley <[EMAIL PROTECTED]> 
13/08/2008 21:29

To
[EMAIL PROTECTED]
cc
r-help@r-project.org
Subject
Re: [R] which alternative tests instead of AIC/BIC for choosing models






Cp is either the same thing as AIC, or an approximation to it.  So it is 
not an 'alternative'.

See e.g. the discussion in MASS or ?add1.

On Wed, 13 Aug 2008, [EMAIL PROTECTED] wrote:

> By way of partial follow-up to my own question, and on the odd chance
> anyone else wonders about this issue, some alternatives to this appear 
to
> be in the leaps package, which implements the leaps routine (Mallows Cp)
> and regsubsets. In my case Mallows' Cp does not work either (see below),
> so I have implemented the following.
>
> regr # <- holds a zoo object with the 1st column being the dependent
> variable
>
> r2test<- (result$lm.r2>Rsqr) &
>(all(unlist(lapply(2:(dim(regr)[2]),function(i)
> summary(lm(regr[,1]~regr[,i]))$adj.r.squared ))>0.1)) &
>which.min(leaps(as.matrix(regr[,-1]),regr[,1])$Cp)==dim(regr)[2]
>
> leaps on the same problem below
> ===
>
>> leaps(as.matrix(regr3[,-1]),regr3[,1],method=c("adjr2"))
> $which
>  1 2
> 1 FALSE  TRUE
> 1  TRUE FALSE
> 2  TRUE  TRUE
>
> $label
> [1] "(Intercept)" "1"   "2"
>
> $size
> [1] 2 2 3
>
> $adjr2
> [1] 0.950757134 0.001681389 0.954859493
>
>> leaps(as.matrix(regr3[,-1]),regr3[,1],method=c("Cp"))
> $which
>  1 2
> 1 FALSE  TRUE
> 1  TRUE FALSE
> 2  TRUE  TRUE
>
> $label
> [1] "(Intercept)" "1"   "2"
>
> $size
> [1] 2 2 3
>
> $Cp
> [1]   38.53367 8490.553273.0
>
>>
>
>
>
> Tolga I Uzuner/JPMCHASE
> 13/08/2008 17:33
>
> To
> r-help@r-project.org
> cc
>
> Subject
> which alternative tests instead of AIC/BIC for choosing models
>
>
>
>
>
> Dear R Users,
>
> I am looking for an alternative to AIC or BIC to choose model 
parameters.
> This is somewhat of a general statistics question, but I ask it in this
> forum as I am looking for a R solution.
>
> Suppose I have one dependent variable, y, and two independent variables,
> x1 an x2.
>
> I can perform three regressions:
> reg1: y~x1
> reg2: y~x2
> reg3: y~x1+x2
>
> The AIC of reg1 is 2000, reg2 is 1000 and reg3 is 950. One would,
> presumably, conclude that one should use both x1 and x2.  However, the
> R^2's are quite different: R^2 of reg1 is 0.5%, reg2 is 95% and reg3 is
> 95.25%. Knowing that, I would actually conclude that x1 adds litte and
> should probably not be used.
>
> There is the overall question of what potentially explains this outcome,
> i.e. the reduction in AIC in going from reg2 to reg3 even though R^2 
does
> not materially improve
> with the addition of x1 to reg 2 (to get to reg3). But that is more of a
> generic statistics issue and not my question here.
>
> The question I do have is, is there a package in R which implements a 
test
> and provides some diagnostic information I can use to rule out the use 
of
> x1 in a systematic way as it's addition to the equation adds little in
> terms of explaining the variability of y.
>
> Thanks in advance,
> Tolga
>
>
> Generally, this communication is for informational purposes only
> and it is not intended as an offer or solicitation for the purchase
> or sale of any financial instrument or as an official confirmation
> of any transaction. In the event you are receiving the offering
> materials attached below related to your interest in hedge funds or
> private equity, this communication may be intended as an offer or
> solicitation for the purchase or sale of such fund(s).  All market
> prices, data and other information are not warranted as to
> completeness or accuracy and are subject to change without notice.
> Any comments or statements made herein do not necessarily reflect
> those of JPMorgan Chase & Co., its subsidiaries and affiliates.
>
> This transmission may contain information that is privileged,
> confidential, legally privileged, and/or exempt from disclosure
> under applicable law. If you are not the intended recipient, you
> are hereby notified that any disclosure, copying, distribution, or
> use of the information contained herein (including any reliance
> thereon) is STRICTLY PROHIBITED. Although this transmission and any
> attachments are believed to be free of any virus or other defect
> that might affect any computer system into which it is received and
>

Re: [R] which alternative tests instead of AIC/BIC for choosing models

2008-08-13 Thread Ben Bolker

> > Dear R Users,
> >
> > I am looking for an alternative to AIC or BIC to choose model parameters.
> > This is somewhat of a general statistics question, but I ask it in this
> > forum as I am looking for a R solution.
> >
> > Suppose I have one dependent variable, y, and two independent variables,
> > x1 an x2.
> >
> > I can perform three regressions:
> > reg1: y~x1
> > reg2: y~x2
> > reg3: y~x1+x2
> >
> > The AIC of reg1 is 2000, reg2 is 1000 and reg3 is 950. One would,
> > presumably, conclude that one should use both x1 and x2.  However, the
> > R^2's are quite different: R^2 of reg1 is 0.5%, reg2 is 95% and reg3 is
> > 95.25%. Knowing that, I would actually conclude that x1 adds litte and
> > should probably not be used.
> >
> > There is the overall question of what potentially explains this outcome,
> > i.e. the reduction in AIC in going from reg2 to reg3 even though R^2 does
> > not materially improve
> > with the addition of x1 to reg 2 (to get to reg3). But that is more of a
> > generic statistics issue and not my question here.
> >

  I know you didn't ask the "generic statistics question", but
I think it's fairly important.  I suspect the reason that
you're getting (what you consider to be) a "spurious" result
that includes x1, or equivalently that your delta-AICs are
so big, is that you have a huge data set.  Lindsey (p. 15)
talks a bit about calibration that changes with the size of 
the data set.

  Model 3 will very probably give you better predictive power
than model 2.  If you want to select on the basis of improvement
in R^2, why not just do that?

  Ben Bolker

Lindsey, J. K. 1999. Some Statistical Heresies. The Statistician 48, no. 1: 
1-40.

__
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.


Re: [R] which alternative tests instead of AIC/BIC for choosing models

2008-08-13 Thread Prof Brian Ripley
Cp is either the same thing as AIC, or an approximation to it.  So it is 
not an 'alternative'.


See e.g. the discussion in MASS or ?add1.

On Wed, 13 Aug 2008, [EMAIL PROTECTED] wrote:


By way of partial follow-up to my own question, and on the odd chance
anyone else wonders about this issue, some alternatives to this appear to
be in the leaps package, which implements the leaps routine (Mallows Cp)
and regsubsets. In my case Mallows' Cp does not work either (see below),
so I have implemented the following.

regr # <- holds a zoo object with the 1st column being the dependent
variable

r2test<- (result$lm.r2>Rsqr) &
   (all(unlist(lapply(2:(dim(regr)[2]),function(i)
summary(lm(regr[,1]~regr[,i]))$adj.r.squared ))>0.1)) &
   which.min(leaps(as.matrix(regr[,-1]),regr[,1])$Cp)==dim(regr)[2]

leaps on the same problem below
===


leaps(as.matrix(regr3[,-1]),regr3[,1],method=c("adjr2"))

$which
 1 2
1 FALSE  TRUE
1  TRUE FALSE
2  TRUE  TRUE

$label
[1] "(Intercept)" "1"   "2"

$size
[1] 2 2 3

$adjr2
[1] 0.950757134 0.001681389 0.954859493


leaps(as.matrix(regr3[,-1]),regr3[,1],method=c("Cp"))

$which
 1 2
1 FALSE  TRUE
1  TRUE FALSE
2  TRUE  TRUE

$label
[1] "(Intercept)" "1"   "2"

$size
[1] 2 2 3

$Cp
[1]   38.53367 8490.553273.0







Tolga I Uzuner/JPMCHASE
13/08/2008 17:33

To
r-help@r-project.org
cc

Subject
which alternative tests instead of AIC/BIC for choosing models





Dear R Users,

I am looking for an alternative to AIC or BIC to choose model parameters.
This is somewhat of a general statistics question, but I ask it in this
forum as I am looking for a R solution.

Suppose I have one dependent variable, y, and two independent variables,
x1 an x2.

I can perform three regressions:
reg1: y~x1
reg2: y~x2
reg3: y~x1+x2

The AIC of reg1 is 2000, reg2 is 1000 and reg3 is 950. One would,
presumably, conclude that one should use both x1 and x2.  However, the
R^2's are quite different: R^2 of reg1 is 0.5%, reg2 is 95% and reg3 is
95.25%. Knowing that, I would actually conclude that x1 adds litte and
should probably not be used.

There is the overall question of what potentially explains this outcome,
i.e. the reduction in AIC in going from reg2 to reg3 even though R^2 does
not materially improve
with the addition of x1 to reg 2 (to get to reg3). But that is more of a
generic statistics issue and not my question here.

The question I do have is, is there a package in R which implements a test
and provides some diagnostic information I can use to rule out the use of
x1 in a systematic way as it's addition to the equation adds little in
terms of explaining the variability of y.

Thanks in advance,
Tolga


Generally, this communication is for informational purposes only
and it is not intended as an offer or solicitation for the purchase
or sale of any financial instrument or as an official confirmation
of any transaction. In the event you are receiving the offering
materials attached below related to your interest in hedge funds or
private equity, this communication may be intended as an offer or
solicitation for the purchase or sale of such fund(s).  All market
prices, data and other information are not warranted as to
completeness or accuracy and are subject to change without notice.
Any comments or statements made herein do not necessarily reflect
those of JPMorgan Chase & Co., its subsidiaries and affiliates.

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.
Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to UK legal entities.
[[alternative HTML version deleted]]

__
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.



--
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 27

Re: [R] which alternative tests instead of AIC/BIC for choosing models

2008-08-13 Thread tolga . i . uzuner
By way of partial follow-up to my own question, and on the odd chance 
anyone else wonders about this issue, some alternatives to this appear to 
be in the leaps package, which implements the leaps routine (Mallows Cp) 
and regsubsets. In my case Mallows' Cp does not work either (see below), 
so I have implemented the following.

regr # <- holds a zoo object with the 1st column being the dependent 
variable

r2test<- (result$lm.r2>Rsqr) & 
(all(unlist(lapply(2:(dim(regr)[2]),function(i) 
summary(lm(regr[,1]~regr[,i]))$adj.r.squared ))>0.1)) &
which.min(leaps(as.matrix(regr[,-1]),regr[,1])$Cp)==dim(regr)[2]

leaps on the same problem below
===

> leaps(as.matrix(regr3[,-1]),regr3[,1],method=c("adjr2"))
$which
  1 2
1 FALSE  TRUE
1  TRUE FALSE
2  TRUE  TRUE

$label
[1] "(Intercept)" "1"   "2" 

$size
[1] 2 2 3

$adjr2
[1] 0.950757134 0.001681389 0.954859493

> leaps(as.matrix(regr3[,-1]),regr3[,1],method=c("Cp"))
$which
  1 2
1 FALSE  TRUE
1  TRUE FALSE
2  TRUE  TRUE

$label
[1] "(Intercept)" "1"   "2" 

$size
[1] 2 2 3

$Cp
[1]   38.53367 8490.553273.0

> 



Tolga I Uzuner/JPMCHASE 
13/08/2008 17:33

To
r-help@r-project.org
cc

Subject
which alternative tests instead of AIC/BIC for choosing models





Dear R Users,

I am looking for an alternative to AIC or BIC to choose model parameters. 
This is somewhat of a general statistics question, but I ask it in this 
forum as I am looking for a R solution.

Suppose I have one dependent variable, y, and two independent variables, 
x1 an x2. 

I can perform three regressions: 
reg1: y~x1 
reg2: y~x2 
reg3: y~x1+x2 

The AIC of reg1 is 2000, reg2 is 1000 and reg3 is 950. One would, 
presumably, conclude that one should use both x1 and x2.  However, the 
R^2's are quite different: R^2 of reg1 is 0.5%, reg2 is 95% and reg3 is 
95.25%. Knowing that, I would actually conclude that x1 adds litte and 
should probably not be used.

There is the overall question of what potentially explains this outcome, 
i.e. the reduction in AIC in going from reg2 to reg3 even though R^2 does 
not materially improve 
with the addition of x1 to reg 2 (to get to reg3). But that is more of a 
generic statistics issue and not my question here.

The question I do have is, is there a package in R which implements a test 
and provides some diagnostic information I can use to rule out the use of 
x1 in a systematic way as it's addition to the equation adds little in 
terms of explaining the variability of y.

Thanks in advance,
Tolga


Generally, this communication is for informational purposes only
and it is not intended as an offer or solicitation for the purchase
or sale of any financial instrument or as an official confirmation
of any transaction. In the event you are receiving the offering
materials attached below related to your interest in hedge funds or
private equity, this communication may be intended as an offer or
solicitation for the purchase or sale of such fund(s).  All market
prices, data and other information are not warranted as to
completeness or accuracy and are subject to change without notice.
Any comments or statements made herein do not necessarily reflect
those of JPMorgan Chase & Co., its subsidiaries and affiliates.

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.
Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to UK legal entities.
[[alternative HTML version deleted]]

__
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.


Re: [R] which alternative tests instead of AIC/BIC for choosing models

2008-08-13 Thread tolga . i . uzuner
Many thanks John, appreciate the advice,
Tolga




"John C Frain" <[EMAIL PROTECTED]> 
13/08/2008 18:51

To
[EMAIL PROTECTED]
cc
r-help@r-project.org
Subject
Re: [R] which alternative tests instead of AIC/BIC for choosing models






My initial idea would be to forget about AIC and BIC, ask the question
what would one expect to get in the regression and then regress y on
x1 and x2 and use a simple t-test to determine what should be
included.  Remember that omitted variables will bias your coefficients
but if you include redundant variables your results will remain
consistent.  I presume that you do not have any problems with
non-stationary variables.

Best Regards

John

2008/8/13  <[EMAIL PROTECTED]>:
> Dear R Users,
>
> I am looking for an alternative to AIC or BIC to choose model 
parameters.
> This is somewhat of a general statistics question, but I ask it in this
> forum as I am looking for a R solution.
>
> Suppose I have one dependent variable, y, and two independent variables,
> x1 an x2.
>
> I can perform three regressions:
> reg1: y~x1
> reg2: y~x2
> reg3: y~x1+x2
>
> The AIC of reg1 is 2000, reg2 is 1000 and reg3 is 950. One would,
> presumably, conclude that one should use both x1 and x2.  However, the
> R^2's are quite different: R^2 of reg1 is 0.5%, reg2 is 95% and reg3 is
> 95.25%. Knowing that, I would actually conclude that x1 adds litte and
> should probably not be used.
>
> There is the overall question of what potentially explains this outcome,
> i.e. the reduction in AIC in going from reg2 to reg3 even though R^2 
does
> not materially improve
> with the addition of x1 to reg 2 (to get to reg3). But that is more of a
> generic statistics issue and not my question here.
>
> The question I do have is, is there a package in R which implements a 
test
> and provides some diagnostic information I can use to rule out the use 
of
> x1 in a systematic way as it's addition to the equation adds little in
> terms of explaining the variability of y.
>
> Thanks in advance,
> Tolga
>
> Generally, this communication is for informational purposes only
> and it is not intended as an offer or solicitation for the purchase
> or sale of any financial instrument or as an official confirmation
> of any transaction. In the event you are receiving the offering
> materials attached below related to your interest in hedge funds or
> private equity, this communication may be intended as an offer or
> solicitation for the purchase or sale of such fund(s).  All market
> prices, data and other information are not warranted as to
> completeness or accuracy and are subject to change without notice.
> Any comments or statements made herein do not necessarily reflect
> those of JPMorgan Chase & Co., its subsidiaries and affiliates.
>
> This transmission may contain information that is privileged,
> confidential, legally privileged, and/or exempt from disclosure
> under applicable law. If you are not the intended recipient, you
> are hereby notified that any disclosure, copying, distribution, or
> use of the information contained herein (including any reliance
> thereon) is STRICTLY PROHIBITED. Although this transmission and any
> attachments are believed to be free of any virus or other defect
> that might affect any computer system into which it is received and
> opened, it is the responsibility of the recipient to ensure that it
> is virus free and no responsibility is accepted by JPMorgan Chase &
> Co., its subsidiaries and affiliates, as applicable, for any loss
> or damage arising in any way from its use. If you received this
> transmission in error, please immediately contact the sender and
> destroy the material in its entirety, whether in electronic or hard
> copy format. Thank you.
> Please refer to http://www.jpmorgan.com/pages/disclosures for
> disclosures relating to UK legal entities.
>[[alternative HTML version deleted]]
>
> __
> 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.
>



-- 
John C Frain
Trinity College Dublin
Dublin 2
Ireland
www.tcd.ie/Economics/staff/frainj/home.html
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]



Generally, this communication is for informational purposes only
and it is not intended as an offer or solicitation for the purchase
or sale of any financial instrument or as an official confirmation
of any transaction. In the event you are receiving the offering
materials attached below related to your interest in hedge funds or
private equity, this communication may be intended as an offer 

Re: [R] which alternative tests instead of AIC/BIC for choosing models

2008-08-13 Thread John C Frain
My initial idea would be to forget about AIC and BIC, ask the question
what would one expect to get in the regression and then regress y on
x1 and x2 and use a simple t-test to determine what should be
included.  Remember that omitted variables will bias your coefficients
but if you include redundant variables your results will remain
consistent.  I presume that you do not have any problems with
non-stationary variables.

Best Regards

John

2008/8/13  <[EMAIL PROTECTED]>:
> Dear R Users,
>
> I am looking for an alternative to AIC or BIC to choose model parameters.
> This is somewhat of a general statistics question, but I ask it in this
> forum as I am looking for a R solution.
>
> Suppose I have one dependent variable, y, and two independent variables,
> x1 an x2.
>
> I can perform three regressions:
> reg1: y~x1
> reg2: y~x2
> reg3: y~x1+x2
>
> The AIC of reg1 is 2000, reg2 is 1000 and reg3 is 950. One would,
> presumably, conclude that one should use both x1 and x2.  However, the
> R^2's are quite different: R^2 of reg1 is 0.5%, reg2 is 95% and reg3 is
> 95.25%. Knowing that, I would actually conclude that x1 adds litte and
> should probably not be used.
>
> There is the overall question of what potentially explains this outcome,
> i.e. the reduction in AIC in going from reg2 to reg3 even though R^2 does
> not materially improve
> with the addition of x1 to reg 2 (to get to reg3). But that is more of a
> generic statistics issue and not my question here.
>
> The question I do have is, is there a package in R which implements a test
> and provides some diagnostic information I can use to rule out the use of
> x1 in a systematic way as it's addition to the equation adds little in
> terms of explaining the variability of y.
>
> Thanks in advance,
> Tolga
>
> Generally, this communication is for informational purposes only
> and it is not intended as an offer or solicitation for the purchase
> or sale of any financial instrument or as an official confirmation
> of any transaction. In the event you are receiving the offering
> materials attached below related to your interest in hedge funds or
> private equity, this communication may be intended as an offer or
> solicitation for the purchase or sale of such fund(s).  All market
> prices, data and other information are not warranted as to
> completeness or accuracy and are subject to change without notice.
> Any comments or statements made herein do not necessarily reflect
> those of JPMorgan Chase & Co., its subsidiaries and affiliates.
>
> This transmission may contain information that is privileged,
> confidential, legally privileged, and/or exempt from disclosure
> under applicable law. If you are not the intended recipient, you
> are hereby notified that any disclosure, copying, distribution, or
> use of the information contained herein (including any reliance
> thereon) is STRICTLY PROHIBITED. Although this transmission and any
> attachments are believed to be free of any virus or other defect
> that might affect any computer system into which it is received and
> opened, it is the responsibility of the recipient to ensure that it
> is virus free and no responsibility is accepted by JPMorgan Chase &
> Co., its subsidiaries and affiliates, as applicable, for any loss
> or damage arising in any way from its use. If you received this
> transmission in error, please immediately contact the sender and
> destroy the material in its entirety, whether in electronic or hard
> copy format. Thank you.
> Please refer to http://www.jpmorgan.com/pages/disclosures for
> disclosures relating to UK legal entities.
>[[alternative HTML version deleted]]
>
> __
> 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.
>



-- 
John C Frain
Trinity College Dublin
Dublin 2
Ireland
www.tcd.ie/Economics/staff/frainj/home.html
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]

__
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.


[R] which alternative tests instead of AIC/BIC for choosing models

2008-08-13 Thread tolga . i . uzuner
Dear R Users,

I am looking for an alternative to AIC or BIC to choose model parameters. 
This is somewhat of a general statistics question, but I ask it in this 
forum as I am looking for a R solution.

Suppose I have one dependent variable, y, and two independent variables, 
x1 an x2. 

I can perform three regressions: 
reg1: y~x1 
reg2: y~x2 
reg3: y~x1+x2 

The AIC of reg1 is 2000, reg2 is 1000 and reg3 is 950. One would, 
presumably, conclude that one should use both x1 and x2.  However, the 
R^2's are quite different: R^2 of reg1 is 0.5%, reg2 is 95% and reg3 is 
95.25%. Knowing that, I would actually conclude that x1 adds litte and 
should probably not be used.

There is the overall question of what potentially explains this outcome, 
i.e. the reduction in AIC in going from reg2 to reg3 even though R^2 does 
not materially improve 
with the addition of x1 to reg 2 (to get to reg3). But that is more of a 
generic statistics issue and not my question here.

The question I do have is, is there a package in R which implements a test 
and provides some diagnostic information I can use to rule out the use of 
x1 in a systematic way as it's addition to the equation adds little in 
terms of explaining the variability of y.

Thanks in advance,
Tolga

Generally, this communication is for informational purposes only
and it is not intended as an offer or solicitation for the purchase
or sale of any financial instrument or as an official confirmation
of any transaction. In the event you are receiving the offering
materials attached below related to your interest in hedge funds or
private equity, this communication may be intended as an offer or
solicitation for the purchase or sale of such fund(s).  All market
prices, data and other information are not warranted as to
completeness or accuracy and are subject to change without notice.
Any comments or statements made herein do not necessarily reflect
those of JPMorgan Chase & Co., its subsidiaries and affiliates.

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.
Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to UK legal entities.
[[alternative HTML version deleted]]

__
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.