Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results for fitted resid
Search options not deleted
1 vote
0 answers
39 views

Does the R stats's resid(x,'type="normalized") functions produce the correct "normalized" mo... [closed]

ask this because the geepack does not "depend" or import from the stats package according to https://cran.r-project.org/web/packages/geepack/geepack.pdf. the stats package has the function residuals(fitted … object) and resid(fitted object). residuals {stats} R Documentation Extract Model Residuals Description residuals is a generic function which extracts model residuals from objects returned by modeling …
Bsduyu's user avatar
  • 11
0 votes
0 answers
38 views

Resid vs Fitted plot for similar data on lme4 model looks vastly different on similar data. ...

I am using the same code to build the model for two different species but getting very different looking residual vs fitted plots and I am wondering why. …
Cozette Romero's user avatar
5 votes
1 answer
2k views

Adding an observation level random term messes up residuals vs fitted plot. Why?

The problem is: now my residuals plot (resid vs. fitted) has a clear pattern. If I delete that new "observation level random term" the plot looks good again. Why? …
Charly's user avatar
  • 421
0 votes
1 answer
511 views

Residuals vs Fitted does not meet linear regression assumptions

I found a similar question (Residual vs Fitted) but (unless I am overthinking it) it does not apply to my issue since my data is not discrete data. … This is the residual vs fit graph I get: And the QQ Plot: From my understanding the Resid vs Fitted violates the assumptions of linear regression. From there I do now know what to do. …
Nico's user avatar
  • 1
0 votes
0 answers
28 views

Shall I further belive DHARMapackages whan dignosed?

However, When I finaly fitted a model with FUll variable . qqPlot(resid(Model)) tell me I got the right things but DHARMa's result told me I'm wrong. Shall I believe DHARMa Pakacages? … par(mfrow = c(1,2)) qqPlot(resid(M)) plot(resid(M) ~ fitted(M)); abline(h=0) And pardon me I can't upload my dataset for your convinience because it will exceed the number of character. …
PeterPanPan's user avatar
2 votes
2 answers
63 views

Resids vs fitted plot shows cyclical patterns. I have chosen 5 explanatory variables out of ...

Here is the resids vs fitted and qqplot of the model (obtained using 'plot(mod_och, type = 'residuals', series = 3)', the tails are heavy and residuals not normally distributed I assumed the red line …
Samuel beauregard-tousignant's user avatar
1 vote
0 answers
27 views

Heteroscedasticity or not

The results agree with the suspicions, but clear groups are seen on the residual plot (resid vs. fitted) - please see the fig1. …
ljb's user avatar
  • 11
0 votes
0 answers
49 views

Do these diagnostic plots show that my best model has good fit?

However, when I checked the diagnostic plots for the best model, they look as follows: Should I be concerned about the fitted vs. resid plot? What could be causing that kind of dispersion? …
Rnoobie's user avatar
  • 21
2 votes
1 answer
3k views

Correlation between standardized residuals and fitted values in a linear mixed effect model:...

hist(resid(M3)) qqnorm(resid(M3)) qqline(resid(M3)) Independence checks look good (?), for example here for facesex: plot(data$facesex,resid(M3)) Heterogeneity check looks... well, hum. … plot(fitted(M3),resid(M3)) abline(h=0,col="grey") lines(lowess(fitted(M3)[is.finite(fitted(M3))],resid(M3)[is.finite(fitted(M3))]),col="red") The pattern is absent in M1 and M2. …
user42174's user avatar
  • 313
2 votes
0 answers
2k views

Diagonal pattern in fitted v. residuals plot for lmer multilevel model

With plot(fitted(model), resid(model)) I get the plot on the left below. … I get the following from model <- lm(time ~ gender + age + runs + friends, mydata) and plot(fitted(model), resid(model)): So, the lm() seems okay in this regard. …
arranjdavis's user avatar
3 votes
1 answer
1k views

Is it valid to use Anova (in R) to compare alternative multinomial log-linear models?

I am familiar with the idea of comparing alternative linear regression models using anova(model1,model2), for models fitted using lm() in R. … . df Resid. …
Izy's user avatar
  • 649
2 votes
0 answers
54 views

Is there a reason to plot residuals vs observed values rather than residuals vs fitted values? [duplicate]

.fitted, y = .resid)) + geom_point() + geom_smooth(se = FALSE, col = "red") + #Adds the line of fit geom_hline(yintercept = 0, linetype = 2) + #Adds the horizontal dashed line labs(x ="Fitted … Values", y ="Residuals", title = "Residual vs Fitted") + theme_bw() ##Residuals vs Petal.Length (what my prof wants) ggplot(data = d, aes(x = Petal.Length, y = .resid)) + geom_point() + geom_smooth …
Matthew Lowe's user avatar
0 votes
0 answers
11 views

How might I go about analyzing the affect that the number of attempts of something has on th...

Passing this into a linear model with a log-log transform, the qqplot and histogram looked pretty normal but the resid vs fitted was definitely off, but I don't know exactly what causes the behavior (pictured …
peeezy's user avatar
  • 1
5 votes
1 answer
2k views

What resolution should I be using for residuals vs fitted values plot from a linear regression?

It appears to shows residuals that are correlated with the fitted values: library(ggplot2) df_lm_longitude <- ggplot2::fortify(lm_longitude) ggplot(df_lm_longitude, aes(.fitted, .resid)) + geom_point … () + stat_smooth() But change the scale of the y axis, and residuals vs fitted values plot looks perfect: ggplot(df_lm_longitude, aes(.fitted, .resid)) + geom_point() + stat_smooth() + ylim(-0.01, …
luciano's user avatar
  • 14.6k
4 votes
2 answers
3k views

Why are Pearsons residuals from a Poisson regression so large?

I ran this Poisson regression: library(ggplot2) glm_diamonds <- glm(price ~ carat, family = "poisson", data=diamonds) I then saved the Pearsons residuals and fitted values from the model: resid <- … resid(glm_diamonds, type = "pearson") fitted <- fitted(glm_diamonds) df <- data.frame(resid, fitted) I then plotted the Pearsons residuals against fitted values: ggplot(df, aes(fitted, resid)) + geom_point …
luciano's user avatar
  • 14.6k

1
2 3 4 5
12
15 30 50 per page