Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201977

Extract residuals only for two observations

$
0
0

Below is my code for a regression analysis.

Reg <- lm(hgc94~father_hgc+edex79, data=NLSY_education)
summary(Reg)

After this process, how could I calculate/report only the first two respondent's residual among 200 respondents?


Viewing all articles
Browse latest Browse all 201977

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>