Re: [R] missing values for mda package

2004-04-09 Thread zhu wang
Thanks. I was able to use na.omit to remove NAs. But it seems to me this
kills one of the advantages of the original algorithm for handling
missing values.

On Tue, 2004-04-06 at 11:54, Uwe Ligges wrote:
 zhu wang wrote:
  
  Dear helpers,
  
  I am trying to use the mda package downloaded from the R website, but
  the data set has missing values so I got an error message. Should I
  manually handle these missing values? I was trying to read the documents
  to specify any option related to missing values, but I did not find it.
  Please forgive me if I ignore something obvious.
 
 If it is not documented (hence probably not available) and you don't
 know how to tell the functions to handle missing values, try to do it
 yourself. ?NA suggests:
 See Also: [...] 'na.action', 'na.omit', 'na.fail' on how methods can be
 tuned to deal with missing values.
 
 Uwe Ligges
 
 
 
  Thanks,
  
  Zhu Wang
  
  Statistical Science Department
  Southern Methodist University
  Dallas, TX 75275-0332
  Phone: (214)768-2453
  Fax: (214)768-4035
  Email: [EMAIL PROTECTED]
  
  __
  [EMAIL PROTECTED] mailing list
  https://www.stat.math.ethz.ch/mailman/listinfo/r-help
  PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
-- 
Zhu Wang

Statistical Science Department
Southern Methodist University
Dallas, TX 75275-0332
Phone: (214)768-2453
Fax: (214)768-4035
Email: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] missing values for mda package

2004-04-09 Thread Prof Brian Ripley
Package mda covers many things, including bruto, mars, polyreg and mda
itself.  Which `the original algorithm' for which option did you have in
mind?  More concretely, what where you trying to do with the package?

Given that the package is the original authors' own code, it seems
unlikely that they `killed one of the advantages' of their methodology, so 
elucidation is sorely needed.

On 9 Apr 2004, zhu wang wrote:

 Thanks. I was able to use na.omit to remove NAs. But it seems to me this
 kills one of the advantages of the original algorithm for handling
 missing values.
 
 On Tue, 2004-04-06 at 11:54, Uwe Ligges wrote:
  zhu wang wrote:
   
   Dear helpers,
   
   I am trying to use the mda package downloaded from the R website, but
   the data set has missing values so I got an error message. Should I
   manually handle these missing values? I was trying to read the documents
   to specify any option related to missing values, but I did not find it.
   Please forgive me if I ignore something obvious.
  
  If it is not documented (hence probably not available) and you don't
  know how to tell the functions to handle missing values, try to do it
  yourself. ?NA suggests:
  See Also: [...] 'na.action', 'na.omit', 'na.fail' on how methods can be
  tuned to deal with missing values.
  
  Uwe Ligges
  
  
  
   Thanks,
   
   Zhu Wang
   
   Statistical Science Department
   Southern Methodist University
   Dallas, TX 75275-0332
   Phone: (214)768-2453
   Fax: (214)768-4035
   Email: [EMAIL PROTECTED]
   
   __
   [EMAIL PROTECTED] mailing list
   https://www.stat.math.ethz.ch/mailman/listinfo/r-help
   PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
 

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


RE: [R] missing values for mda package

2004-04-09 Thread Wang, Zhu
I basically wanted to use MARS to reproduce results using the dataset Marketing in 
the following book 

http://www-stat-class.stanford.edu/~tibs/ElemStatLearn/

The authors actually provided S-Plus functions for mars, bruto ,etc. I used all 
default options of mars in R but there was an error due to NAs and I could not find 
any option to handle missing values. 

Zhu Wang 

-Original Message-
From:   Prof Brian Ripley [mailto:[EMAIL PROTECTED]
Sent:   Fri 4/9/2004 12:53 PM
To: Wang, Zhu
Cc: Uwe Ligges; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject:Re: [R] missing values for mda package
Package mda covers many things, including bruto, mars, polyreg and mda
itself.  Which `the original algorithm' for which option did you have in
mind?  More concretely, what where you trying to do with the package?

Given that the package is the original authors' own code, it seems
unlikely that they `killed one of the advantages' of their methodology, so 
elucidation is sorely needed.

On 9 Apr 2004, zhu wang wrote:

 Thanks. I was able to use na.omit to remove NAs. But it seems to me this
 kills one of the advantages of the original algorithm for handling
 missing values.
 
 On Tue, 2004-04-06 at 11:54, Uwe Ligges wrote:
  zhu wang wrote:
   
   Dear helpers,
   
   I am trying to use the mda package downloaded from the R website, but
   the data set has missing values so I got an error message. Should I
   manually handle these missing values? I was trying to read the documents
   to specify any option related to missing values, but I did not find it.
   Please forgive me if I ignore something obvious.
  
  If it is not documented (hence probably not available) and you don't
  know how to tell the functions to handle missing values, try to do it
  yourself. ?NA suggests:
  See Also: [...] 'na.action', 'na.omit', 'na.fail' on how methods can be
  tuned to deal with missing values.
  
  Uwe Ligges
  
  
  
   Thanks,
   
   Zhu Wang
   
   Statistical Science Department
   Southern Methodist University
   Dallas, TX 75275-0332
   Phone: (214)768-2453
   Fax: (214)768-4035
   Email: [EMAIL PROTECTED]
   
   __
   [EMAIL PROTECTED] mailing list
   https://www.stat.math.ethz.ch/mailman/listinfo/r-help
   PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
 

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] missing values for mda package

2004-04-06 Thread Uwe Ligges


zhu wang wrote:
 
 Dear helpers,
 
 I am trying to use the mda package downloaded from the R website, but
 the data set has missing values so I got an error message. Should I
 manually handle these missing values? I was trying to read the documents
 to specify any option related to missing values, but I did not find it.
 Please forgive me if I ignore something obvious.

If it is not documented (hence probably not available) and you don't
know how to tell the functions to handle missing values, try to do it
yourself. ?NA suggests:
See Also: [...] 'na.action', 'na.omit', 'na.fail' on how methods can be
tuned to deal with missing values.

Uwe Ligges



 Thanks,
 
 Zhu Wang
 
 Statistical Science Department
 Southern Methodist University
 Dallas, TX 75275-0332
 Phone: (214)768-2453
 Fax: (214)768-4035
 Email: [EMAIL PROTECTED]
 
 __
 [EMAIL PROTECTED] mailing list
 https://www.stat.math.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html