Re: [R] A simple normal-curve question

From: Dieter Menne <dieter.menne_at_menne-biomed.de>
Date: Sat, 16 Apr 2011 00:58:52 -0700 (PDT)

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

--
View this message in context: http://r.789695.n4.nabble.com/A-simple-normal-curve-question-tp3453283p3453703.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_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.
Received on Sat 16 Apr 2011 - 08:00:51 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 16 Apr 2011 - 08:40:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive