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
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
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
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
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
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
6 matches
Mail list logo