Message-ID: <49AE5008.7050707@uke.uni-hamburg.de>
Date: 2009-03-04T09:55:20Z
From: Eik Vettorazzi
Subject: Plotting pdf of function
In-Reply-To: <49AE4AA4.3010703@erasmusmc.nl>
but this is not a probability density function, since lim(abs(x)->
infty)=infty. But there is just a pair of brackets missing in Beetles post.
btw. homework?
Dimitris Rizopoulos schrieb:
> have a look at ?curve(), e.g.,
>
> curve((1 + x^2) / pi, -15, 15)
>
>
> I hope it helps.
>
> Best,
> Dimitris
>
>
> Beetle wrote:
>> Hi Guys,
>> I'm a numbie to R.
>> I searched the forum for plotting pdf's of functions but couldn't
>> find one
>> that explained my question.
>>
>> I have been asked to plot the pdf fX(x) = 1/pi(1+x^2). -infinity < x <
>> infinity.
>>
>> I would be greatfull if someone might point me to a webpage that
>> might give
>> me a hand.
>>
>> Kindest regards
>> Beetle
>
--
Eik Vettorazzi
Institut f?r Medizinische Biometrie und Epidemiologie
Universit?tsklinikum Hamburg-Eppendorf
Martinistr. 52
20246 Hamburg
T ++49/40/42803-8243
F ++49/40/42803-7790