Skip to content
Discussion options

You must be logged in to vote

Your choice of outcome and/or exposure and/or instruments is clearly not good because you have a regression model with perfect fit, i.e., you are regressing two variables which are very highly correlated, e.g., something like

x <- 1:10
y <- 1:10
summary(lm(y ~ x))
#> Warning in summary.lm(lm(y ~ x)): essentially perfect fit: summary may be
#> unreliable
#> 
#> Call:
#> lm(formula = y ~ x)
#> 
#> Residuals:
#>        Min         1Q     Median         3Q        Max 
#> -5.356e-16 -3.618e-17  4.623e-17  1.685e-16  2.057e-16 
#> 
#> Coefficients:
#>              Estimate Std. Error   t value Pr(>|t|)    
#> (Intercept) 0.000e+00  1.675e-16 0.000e+00        1    
#> x           1.000e+00  2.69…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by remlapmot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants