A simple normal-curve question

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

A simple normal-curve question

helin_susam
This post has NOT been accepted by the mailing list yet.
Hi dear list,
Firstly, i apologize for such a question
For example;
x <- rnorm(100)
y <- rlnorm(100)

model <- lm(y~x)

a <- resid(model)

How I show the all area under the normal curve?

Thanks,

Helin.
Reply | Threaded
Open this post in threaded view
|

Re: A simple normal-curve question

Dieter Menne
helin_susam wrote
x <- rnorm(100)
y <- rlnorm(100)
model <- lm(y~x)
a <- resid(model)

How I show the all area under the normal curve?
First, always try plot(model). It can never hurt. Too bad the plot you want is not among the six contenders (?plot.lm).
To do it manually:

plot(density(a))

Dieter


Reply | Threaded
Open this post in threaded view
|

Re: A simple normal-curve question

helin_susam
This post has NOT been accepted by the mailing list yet.
Many thanks dear Dieter