Question

How do I calculate the value of the y-intercept of a fitted regression line in R...

How do I calculate the value of the y-intercept of a fitted regression line in R studio?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

To understand the above problem, let us consider an example:

Suppose, we have a data of Age & Weight as below:

Age=(20,22,21,25,20,24)

Weight(in Kg) = (55,60,50,52,57,55)

Now, consider Weight as dependent variable & Age as a independent. Then, fitt a regression model weight on Age in R-Studio.

Age-C(20,22,21,25,20,24) > weightc(55,60,50,52,57,55) >1m(weight-Age) call: 1m(formula -weight Age) coefficients: (Intercept)

Here, 62.8333 is the value of Y-intercept. By this way, one can easily find the value of y-intercept of a fitted regression line.

Add a comment
Know the answer?
Add Answer to:
How do I calculate the value of the y-intercept of a fitted regression line in R...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT