[R] Residual plots and residual deviance in the SURVEY package when only 'working deviance' available

2016-08-09 Thread Marko Stojovic
Hello - I am analysing some survey data using the svyglm() command in the survey package. Since I am doing binomial regression, the family I'm choosing is 'quasibinomial', since this suppresses the warning that comes about from the inclusion of non-integer outcomes due to weights. I am looki

Re: [R] Residual Plots

2015-05-13 Thread MacQueen, Don
This example might help: tmp <- data.frame(x=1:10, y=rnorm(10)) foo <- lm(y~x, data=tmp) plot(tmp$x, residuals(foo)) It appears that eval$bty_avg is not what you think it is. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062

Re: [R] Residual Plots

2015-05-13 Thread Jim Lemon
Hi Shivi82, The error message suggests that "eval$bty_avg" is a function. What does: str(eval) say about its components? Jim On Wed, May 13, 2015 at 7:33 PM, Shivi82 wrote: > HI All, > I Am creating a residual plot for my linear model. > the code I created is : plot(eval$bty_avg,residuals,yla

[R] Residual Plots

2015-05-13 Thread Shivi82
HI All, I Am creating a residual plot for my linear model. the code I created is : plot(eval$bty_avg,residuals,ylab="residuals", xlab="Score", main = "Residual Analysis")Here data set is eval. eval$bty_avg is my response variable and residual is the var I have created using resid function to stor

Re: [R] residual plots

2008-11-25 Thread Greg Snow
Behalf Of Matt Scholz > Sent: Tuesday, November 25, 2008 1:48 PM > To: r-help@r-project.org > Subject: [R] residual plots > > I've fit a linear model to my data set using the function. One of > the > outputs of that function is a vector of the residuals. I would like to

[R] residual plots

2008-11-25 Thread Matt Scholz
I've fit a linear model to my data set using the function. One of the outputs of that function is a vector of the residuals. I would like to do a residual plot of this data versus a predictor variable, but the length of the residual vector is shorter than the length of the predictor variable vecto