Re: [R] Plot residuals against standard normal distribution

2015-02-07 Thread Mike Miller
On Mon, 2 Feb 2015, Mikael Olai Milhøj wrote: I'm having trouble trying to plot the density of the residuals against the standard normal distribution N(0,1). (I'm trying to see if my residuals are well-behaved). I know hwo to calculate the standardized residuals (I guess that there may be a

Re: [R] Plot residuals against standard normal distribution

2015-02-07 Thread Mike Miller
On Sat, 7 Feb 2015, Mike Miller wrote: res - residuals( model ) resStd - ( res - mean( res, na.rm=TRUE ) ) / sd( res, na.rm=TRUE ) Another issue is how to make the theoretical quantiles for the normal distribution. There are a few methods:

Re: [R] Plot residuals against standard normal distribution

2015-02-03 Thread Mikael Olai Milhøj
Thx - this was exactly what I needed. Yes I also prefer the qqnorm but I like the distrubution chart as well. Thx ! /Mikael On Tue, Feb 3, 2015 at 12:18 AM, peter dalgaard pda...@gmail.com wrote: On 02 Feb 2015, at 23:42 , Mikael Olai Milhøj mikaelmil...@gmail.com wrote: Hi, I'm

Re: [R] Plot residuals against standard normal distribution

2015-02-02 Thread peter dalgaard
On 02 Feb 2015, at 23:42 , Mikael Olai Milhøj mikaelmil...@gmail.com wrote: Hi, I'm having trouble trying to plot the density of the residuals against the standard normal distribution N(0,1). (I'm trying to see if my residuals are well-behaved). I know hwo to calculate the

[R] Plot residuals against standard normal distribution

2015-02-02 Thread Mikael Olai Milhøj
Hi, I'm having trouble trying to plot the density of the residuals against the standard normal distribution N(0,1). (I'm trying to see if my residuals are well-behaved). I know hwo to calculate the standardized residuals (I guess that there may be a simple way using a R function) and then plot

Re: [R] Plot residuals against standard normal distribution

2015-02-02 Thread Hall, Mark
Since you are plotting densities, check out the sm package. It has been over a year or so since I've used it, but there was a setting on the univariate densities to check the data against a normal distribution. Best, MEH On Mon, Feb 2, 2015 at 2:42 PM, Mikael Olai Milhøj