Question

In: Statistics and Probability

r studio answer to these questions What is the intercept parameter (2dp) for the regression equation...

r studio answer to these questions

What is the intercept parameter (2dp) for the regression equation of height (y) versus age (x) using the pine_growth.csv data?

What is the total amount of variation explained by the regression model (SSr) of height (y) versus age (x) using the pine_growth.csv data?

What is the residual error sum of squares (SSe) of a regression model of height (y) versus age (x) using the pine_growth.csv data.

Use your regression equation fitted to the pine_growth.csv data to predict the height (1 dp) of pine trees at 21.8 years.

pine_growth.csv

age   height
7.15576656   18.72849431
8.129775638   35.65477778
16.72602077   40.84925353
22.1494314   61.16668286
24.98842629   63.88029087
10.84800989   38.8948113
16.21167696   50.89108137
21.62648568   58.84822993
27.37032481   58.21976844
8.781800332   38.78419079
15.73044358   47.08995523
18.44298031   47.03292591
24.55722077   57.78373702
8.803465152   19.78892211
14.69364295   38.47185166
19.76821622   52.85251645
25.73732976   54.03867394
9.557438738   19.52645519
13.38045294   50.71181575
21.18576248   50.32075486
25.14524863   66.45636737
11.05895289   35.09854872
15.90885155   46.20593357
21.16517367   59.1335112
24.74997389   53.78095766
10.76039501   31.87024304
17.24982036   38.43437782
20.67469663   42.75693936
24.9187064   56.50248257
9.456849174   27.94407215
17.31785455   44.56102526
19.4035485   43.26457601
26.94362485   69.07639749
10.18743471   30.07622452
14.82076927   32.81933238
19.41960951   45.6665625
26.22703124   54.85557574
11.19384358   37.97390848
13.43821684   44.08033847
20.28160916   60.39976036
26.66076684   66.07282947
10.75153533   27.48342127
15.10263364   30.26795241
19.30307787   47.03971079
26.1097938   57.30252533
7.334193884   16.02310563
7.780802556   29.81303216
13.55907716   35.60521517
18.98254692   45.67647822
27.2336165   49.5956103
8.64498995   22.56785223
16.72757792   40.15677105
18.76667604   39.37013143
26.03969617   62.91864072
11.89543801   16.12208671
14.86010339   33.6554498
18.36353229   50.36578767
25.28054491   65.29231743

Solutions

Expert Solution

1)the intercept is 10.255

2)r square is 0.7712. So, 77.12% of the total variability is explained by the regression model

3) SSRes=2506.3

4)x=21.8, predicted y= 10.255+1.946*21.8=52.6778

r code I used and results:

fit=lm(y~x)

fit

Call:
lm(formula = y ~ x)

Coefficients:
(Intercept) x  
10.255 1.946

> summary(fit)

Call:
lm(formula = y ~ x)

Residuals:
Min 1Q Median 3Q Max
-17.2883 -5.1722 -0.5533 5.6190 14.4112

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 10.2548 2.6176 3.918 0.000246 ***
x 1.9464 0.1417 13.740 < 2e-16 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 6.69 on 56 degrees of freedom
Multiple R-squared: 0.7712,   Adjusted R-squared: 0.7671
F-statistic: 188.8 on 1 and 56 DF, p-value: < 2.2e-16

anova(fit)
Analysis of Variance Table

Response: y
Df Sum Sq Mean Sq F value Pr(>F)
x 1 8448.8 8448.8 188.78 < 2.2e-16 ***
Residuals 56 2506.3 44.8
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
>

IF MY ANSWER IS HELPFUL PLEASE GIVE IT A LIKE


Related Solutions

In R/ R Studio, what code would I enter to find the answers to these questions?...
In R/ R Studio, what code would I enter to find the answers to these questions? What is the code to find the descriptive/ summary statistics of all variables in a data set and how do i find the mean values? What is the code to measure the skewness measure of delta time for all of all the values in the data set? What is the code to draw a histogram and q-q plot of the natural log of a...
6) Write the regression (prediction) equation: Dep_Var = Intercept + c1 * Ind_Var_1 + c2 *...
6) Write the regression (prediction) equation: Dep_Var = Intercept + c1 * Ind_Var_1 + c2 * Ind_Var_2 + c3* Ind_Var_3 7) Identify and interpret the adjusted R2 (one paragraph): Define “adjusted R2.” What does the value of the adjusted R2 reveal about the model? If the adjusted R2 is low, how has the choice of independent variables created this result? 8) Identify and interpret the F test (one paragraph): Using the p-value approach, is the null hypothesis for the F...
Use the following linear regression equation to answer the questions. x3 = −16.2 + 3.8x1 +...
Use the following linear regression equation to answer the questions. x3 = −16.2 + 3.8x1 + 9.6x4 − 1.2x7 (a) Which variable is the response variable? x7 x1 x3 x4 Which variables are the explanatory variables? (Select all that apply.) x4 x7 x1 x3 (b) Which number is the constant term? List the coefficients with their corresponding explanatory variables. constant x1 coefficient x4 coefficient x7 coefficient (c) If x1 = 3, x4 = -1, and x7 = 1, what is...
Use the following linear regression equation to answer the questions. x1 = 1.3 + 3.6x2 –...
Use the following linear regression equation to answer the questions. x1 = 1.3 + 3.6x2 – 8.3x3 + 2.0x4 (Use the following linear regression equation to answer the questions. x1 = 1.3 + 3.6x2 – 8.3x3 + 2.0x4 (a) Which variable is the response variable? x3x2     x1x4 Which variables are the explanatory variables? (Select all that apply.) x3x2x4x1 (b) Which number is the constant term? List the coefficients with their corresponding explanatory variables. constant x2 coefficient x3 coefficient x4 coefficient (c)...
Use the following linear regression equation to answer the questions. x1 = 1.1 + 3.0x2 –...
Use the following linear regression equation to answer the questions. x1 = 1.1 + 3.0x2 – 8.4x3 + 2.3x4 Suppose x3 and x4 were held at fixed but arbitrary values and x2 increased by 1 unit. What would be the corresponding change in x1? Suppose x2 increased by 2 units. What would be the expected change in x1? Suppose x2 decreased by 4 units. What would be the expected change in x1? (e) Suppose that n = 13 data points...
Use the following linear regression equation to answer the questions. x3 = −18.2 + 4.4x1 +...
Use the following linear regression equation to answer the questions. x3 = −18.2 + 4.4x1 + 8.2x4 − 1.2x7 Which number is the constant term? List the coefficients with their corresponding explanatory variables. constant x1 coefficient      x4 coefficient x7 coefficient If x1 = 3, x4 = -9, and x7 = 6, what is the predicted value for x3? (Round your answer to one decimal place.) x3 =   Suppose x1 and x7 were held at fixed but arbitrary values. If x4...
Use the following linear regression equation to answer the questions. x3 = ?16.6 + 3.7x1 +...
Use the following linear regression equation to answer the questions. x3 = ?16.6 + 3.7x1 + 8.6x4 ? 1.9x7 (a) Which variable is the response variable? x4 x1     x3 x7 Which variables are the explanatory variables? (Select all that apply.) x4 x7 x1 x3 (b) Which number is the constant term? List the coefficients with their corresponding explanatory variables. constant= x1 coefficient=    x4 coefficient = x7 coefficient = (c) If x1 = 4, x4 = -4, and x7 =...
18 ) Use the following linear regression equation to answer the questions. x1 = 1.8 +...
18 ) Use the following linear regression equation to answer the questions. x1 = 1.8 + 3.1x2 – 7.6x3 + 1.5x4 (b) Which number is the constant term? List the coefficients with their corresponding explanatory variables. constant x2 coefficient x3 coefficient x4 coefficient (c) If x2 = 9, x3 = 10, and x4 = 5, what is the predicted value for x1? (Use 1 decimal place.) d) Suppose x3 and x4 were held at fixed but arbitrary values and x2...
please use R studio to answer the following questions 1. An eductional theorist collects behavioural data...
please use R studio to answer the following questions 1. An eductional theorist collects behavioural data from two groups of children in an early childhood center. She measures how much time the children are active (e.g. running or swinging on the monkey bars) in minutes. The first group of children are encouraged to run about and as such are expected to be active; the second group is encouraged to sit still and paint, and are expected to be less active....
True or False, The y-intercept in the linear regression equation describes the average outcome of y...
True or False, The y-intercept in the linear regression equation describes the average outcome of y when x = 1. True or false, The slope in the linear regression equation describes the estimated difference in the y-variable if the explanatory variable x for a case happened to be one unit larger. True or false, If the 95% confidence interval for the population slope is given by 0.22 to 0.33, then the sample slope is 0.275. As one increases the sample...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT