## Question

The variables you have information about are the following:

Volume of timber per hectare (response variable) in m3 / ha – volha

Average height of trees (m) - topht

Average diameter at breast height (cm) – dbh

Stems per hectare (number of trees per hectare) – stemsha

Basal area per hectare (obtained from dbh and stems per hectare) m2 / ha – baha

Average age of trees – age

1. Create a linear model that includes baha, topht and the interaction between the two (Interaction Model).

Using this equation, calculate the predicted volume per hectare for Area A with baha = 30 and topht = 24. Calculate the predicted volume per hectare for Area B with baha = 37 and topht = 20. Use R to obtain the 95% prediction intervals for these point estimates.

Give all responses to two decimal places in the following format (do not include any units, spaces, or commas as separators):

predicted volume (lower limit of prediction interval, upper limit of prediction interval)

2. Create a linear model that includes log baha and log topht, and uses log volha as the response variable (Log model). Why does this model make sense based on the type of data?

Using R, convert the predicted values into their original units. Calculate the SSY, and SSE in original units. Calculate the pseudo-R2. Answer as a proportion to four decimal places.

Calculate the residual standard error based on the SSE and SSY in original units. Answer to two decimal places.

In log units, calculate the 95% confidence intervals for the co-efficients. Give answers to three decimal places.

What value would these co-efficients have in the model if tree volume could be modeled perfectly with the equation for volume of a cone? Do the confidence intervals include these values? Explain in 3-6 sentences

Using this equation, calculate the predicted volume per hectare for Area A with baha = 30 and topht = 24. Calculate the predicted volume per hectare for Area B with baha = 37 and topht = 20. Use R to obtain the prediction intervals for these point estimates. Remember to backtransform these values into the original units.

Give all responses to two decimal places in the following format (do not include any units, spaces, or commas as separators):

predicted volume (lower limit of prediction interval, upper limit of prediction interval)

Test the significance of log baha using a partial F-test and alpha = 0.05

Test the significance of log topht using a partial F-test and alpha = 0.05.

## Solution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

# Read Tree_Data.csv datafiledata <- read.csv ("C:/Users/oster/Downloads/Tree_Data.csv")

model1 <- lm (volha~baha+topht+baha:topht, data = data)

new.dat<-data.frame(baha = 30, topht = 24)

new.dat

predict(model1, newdata = new.dat, interval = 'prediction')

new.dat1<-data.frame(baha = 37, topht = 20)

predict(model1, newdata = new.dat1, interval = 'prediction')

R Output is given below:

> summary (model1)

Call:

lm(formula = volha ~ baha + topht + baha:topht, data = data)

Residuals:

Min, 1Q, Median, 3Q, Max

-34.24 -13.00 1.74 12.30 29.74...

By purchasing this solution you'll be able to access the following files:

Solution.docx.