Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

What is the R code for the model in E? Using lasers for solar lighting. Refer to

ID: 3182404 • Letter: W

Question

What is the R code for the model in E?

Using lasers for solar lighting. Refer to the Journal of Applied Physics (September 1993) study of solar lighting with semiconductor lasers, Exercise 4.80(p. 244). The data for the analysis are repeated in the table on the next page. (a) Give the equation relating the coded variables to wave guide, x, using the coding system for observational data. (b) Calculate the coded values, u. (c) Calculate the coefficient of correlation r between the variables x and x2. (d) Calculate the coefficient of correlation r between the variables u and u2. Compare this value to the value computed in part c. (e) Fit the model E(y) = beta 0 + beta 1 u + beta 2 u2 using available statistical software. Interpret the results.

Explanation / Answer

There is no data provided in the question. So we shall directly provide thr R code for fitting the model

###

fit <- lm(y ~ u+u2 , data= yourdata.df)

once the model is fitted , summarise the results using

summary(fit)

and plot the results using

par(mfrow=c(2,2))

plot(fit)

Hope this helps !!

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote