Question

**R-STUDIO KNOWLEDGE REQUIRED***

PLEASE ANSWER THE FOLLOWING WITH ****R-STUDIO**** CODING- thank you so much!!

I am specifically look for the solution to part ***(h)**** and *****(i)***** below using R-Studio code:

IV. Regression Is there a relationship between the number of stories a building has and its height? Some statisticians compilThe data set in question is:

YEAR    Height  Stories
1990    770     54
1980    677     47
1990    428     28
1989    410     38
1966    371     29
1976    504     38
1974    1136    80
1991    695     52
1982    551     45
1986    550     40
1931    568     49
1979    504     33
1988    560     50
1973    512     40
1981    448     31
1983    538     40
1968    410     27
1927    409     31
1969    504     35
1988    777     57
1987    496     31
1960    386     26
1984    530     39
1976    360     25
1920    355     23
1931    1250    102
1989    802     72
1907    741     57
1988    739     54
1990    650     56
1973    592     45
1983    577     42
1971    500     36
1969    469     30
1971    320     22
1988    441     31
1989    845     52
1973    435     29
1987    435     34
1931    375     20
1931    364     33
1924    340     18
1931    375     23
1991    450     30
1973    529     38
1976    412     31
1990    722     62
1983    574     48
1984    498     29
1986    493     40
1986    379     30
1992    579     42
1973    458     36
1988    454     33
1979    952     72
1972    784     57
1930    476     34
1978    453     46
1978    440     30
1977    428     21
1 0
Add a comment Improve this question Transcribed image text
Answer #1

Here I attach the R code for the given Regression analysis

data=read.csv(file.choose()) # Save this data in a csv file
data
fit <- lm(data$Height ~ data$Stories)
summary(fit)
confint(fit,'data$Stories',level=0.95)

Coefficients Estimate Std. Error t value Pr(>lt| (Intercept) data$stories 90. 3096 11. 2924 20.9622 4.308 6.44e-05☆☆☆ 0.48442

The fitted model is given by

Height= 90.3096 + 11.2924 * Stories

h)

The 95% confidence interval for the slope is given by

confint (fit, datasstories ,level-0.95) 2.5% 97.5% data$Stories 10. 32267 12.26208

i)

The estimated height of building that is 45 stories high is

90.3096+11.2924*45= 598.4676

When the stories is 45 high then the height is increased by 598.4676 feet

Add a comment
Know the answer?
Add Answer to:
**R-STUDIO KNOWLEDGE REQUIRED*** PLEASE ANSWER THE FOLLOWING WITH ****R-STUDIO**** CODING- thank ...
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
  • ~~~~~~~~~~~~TO BE COMPLETED USING RSTUDIO~~~~~~~~~~~~~~ ~~~~~~~~~~~~(Please display all RCode used)~~~~~~~~~~~~~~ Regression Is there a relationship between...

    ~~~~~~~~~~~~TO BE COMPLETED USING RSTUDIO~~~~~~~~~~~~~~ ~~~~~~~~~~~~(Please display all RCode used)~~~~~~~~~~~~~~ Regression Is there a relationship between the number of stories a building has and its height? Some statisticians compiled data on a set of n = 60 buildings reported in the World Almanac. You will use the data set to decide whether height (in feet) can be predicted from the number of stories. (a) Load the data from buildings.txt. (Note that this is a text file, so use the appropriate...

  • Because the Florida manatee population is threatened, the Florida Maatee Sanctuary Act of 1978 was enacted...

    Because the Florida manatee population is threatened, the Florida Maatee Sanctuary Act of 1978 was enacted to protect the species. Scientists interested in the relationship between the number of manatee deaths and time collected the data shown in the table. Manatee Deaths 174 163 146 192 201 416 242 232 269 272 325 305 380 276 396 416 Manatee Deaths Year 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 Year 1991...

  • USE R STUDIO The stackloss data frame available in R contains 21 observations on four variables...

    USE R STUDIO The stackloss data frame available in R contains 21 observations on four variables taken at a factory where ammonia is converted to nitric acid. The first three variables are Air.Flow, Water.Temp, and Acid.Conc. The fourth variable is stack.loss, which measures the amount of ammonia that escapes before being absorbed. Read the help file for more information about this data frame. - Give a numerical summarization of each column of the dataset, then use boxplots to help illustrating...

  • Use it and Excel to answer this question. It contains the United States Census Bureau’s estimates...

    Use it and Excel to answer this question. It contains the United States Census Bureau’s estimates for World Population from 1950 to 2014. You will find a column of dates and a column of data on the World Population for these years. Generate the time variable t. Then run a regression with the Population data as a dependent variable and time as the dependent variable. Have Excel report the residuals. (a) (4 marks) Based on the ANOVA table and t-statistics,...

  • Based on the above table answer the following questions; What year is the base year?        (15)    ...

    Based on the above table answer the following questions; What year is the base year?        (15)     __________________________________________ In which year, did we experience deflation? (15)          ______________________________ What was the rate of inflation between 1970 and 1980? (15) ________________________ If you earned $10,000 in 1990, how much would you have had to earn in 2016 in order to maintain the same purchasing power? (5) ___________________________________ Table 4.3 1970 - 2018 Consumer Price Index for All Urban Consumers Price Price Price Price...

  • Please check out these directions before the pictures! I hope someone is able to help! Thank...

    Please check out these directions before the pictures! I hope someone is able to help! Thank you! 11.14 Empirical method. Plot (Q vs. P)data. Correction to (b) probability of a flow of 1000 cfs 11.15 Use theoretical method (frequency factor). Plot the flood-freq. curve (Q vs. P)theory. + Repeat (a) and (b) in Prob. 11.14. These are the answers BEFROE using the constraints listed above. I thought I’d include them as a reference. rhe neak-flow data on an annual basis...

  • The Book of R (Question 20.2) Please answer using R code. Continue using the survey data...

    The Book of R (Question 20.2) Please answer using R code. Continue using the survey data frame from the package MASS for the next few exercises. The survey data set has a variable named Exer , a factor with k = 3 levels describing the amount of physical exercise time each student gets: none, some, or frequent. Obtain a count of the number of students in each category and produce side-by-side boxplots of student height split by exercise. Assuming independence...

  • R programming question. Please use #comments too ! 1. The data set UN11 in the alr4...

    R programming question. Please use #comments too ! 1. The data set UN11 in the alr4 package contains several variables, including ppgdp, per capita gross domestic product in US dollars, and fertility, number of children per woman, from the year 2009-2011. The data are for 199 localities, and we will study the regression of ppgdp on fertility (a) Draw the scatterplot of ppgdp against fertility and describe the relationship between these two variables. Is the trend linear? nD the simple...

  • Please make sure you write the R cude, R-PROGRAM Data was collected in order to investigate...

    Please make sure you write the R cude, R-PROGRAM Data was collected in order to investigate the effect of temperature on the yield of a chemical process. Temperatures were set at eight specific levels, and the yield was determined for five replications at each evel 4. a. Identify the response variable and the predictor variable. Explain your reasoning b. Describe the two sources of variation (variation due to regression and variation about the regression) in terms of this particular problem...

  • PLEASE ANSWER ALL parts . IF YOU CANT ANSWER ALL, KINDLY ANSWER PART (E) AND PART(F)...

    PLEASE ANSWER ALL parts . IF YOU CANT ANSWER ALL, KINDLY ANSWER PART (E) AND PART(F) FOR PART (E) THE REGRESSION MODEL IS ALSO GIVE AT THE END. REGRESSION MODEL: We will be returning to the mtcars dataset, last seen in assignment 4. The dataset mtcars is built into R. It was extracted from the 1974 Motor Trend US magazine, and comcaprises fuel consumption and 10 aspects of automobile design and performance for 32 automobiles (1973-74 models). You can find...

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