s-news
[Top] [All Lists]

Re: density command

To: "Kim YunSuk" <YunSuk.Kim@oregonstate.edu>
Subject: Re: density command
From: Andreas Krause <stats@elmo.ch>
Date: Tue, 27 Jan 2009 08:53:29 +0100
Cc: <s-news@wubios.wustl.edu>
Reply-to: stats@elmo.ch
Yuni,

Good to hear it helped. If you see something like .Call("S_c_use_method", etc) 
then it is often helpful to enter
methods("density") or whatever the command of interest is.
You get to see the methods for specific classes of objects (unless the author 
of the library hid them away).

Try methods("plot") for a longer list of methods.

Andreas


 On Tue 27/01/09 05:24 , "Kim, YunSuk" YunSuk.Kim@oregonstate.edu sent:
> Re: [S] density command     Thank you for tips!  When i type in
> "density" only, then I only got:
> 
> > density
> function(x, ...)
> .Call("S_c_use_method", "density")   I didn't know I could do
> "density.default".  I got all the code I need!   Thank you so much!  
> yuni 
> -------------------------
> FROM: Andreas Krause [mailto:andreas@elmo.ch]
> SENT: Sat 1/24/2009 2:20 AM
> TO: Kim, YunSuk
> SUBJECT: Re: [S] density command
> Hi,
> 
> is the documentation not precise enough?
> You can also look at most of the code by just entering
> density
> or
> density.default
> 
> Haerdle's book has a lot of the details as well, although it is
> fairly old:
> http://www.amazon.com/Smoothing-Techniques-Implementation-Springer-Statisti
> cs/dp/0387973672/ref=sr_1_13?ie=UTF8&s=books&qid=1232792396&sr=8-13[1] 
> Andreas
> Kim, YunSuk wrote:
> > 
> > hi,
> > 
> > I want to know how "density" distribution is calculated in S+, so
> that I
> > can apply it in different computer language.  The density plot we
> get in
> > S+ is different from KDE(kernel density estimator) curve. 
> > If anyone could share with me the equation and/or code, I will
> really
> > appreciate it.   
> > 
> > Thank you very much for any help! 
> > 
> > yuni
> >
> >
> >
> 
> 
> 
> Links:
> ------
> [1]
> http://www.amazon.com/Smoothing-Techniques-Implementation-Springer-Statisti
> cs/dp/0387973672/ref=sr_1_13?ie=UTF8&s=books&qid=1232792396&sr=
> 8-13
> 

<Prev in Thread] Current Thread [Next in Thread>