subject

M1<- lm(yºx, data=df2) summary (m1)
Call:
lm (formula = y "x, data = df2)
Residuals:
Min 1Q Median
-65.10 -18.51 -2.10 3Q 17.42 Max 68.55
Coefficients:
Estimate Std. Error t value Pr(>It)
(Intercept) 52.737 1.874 28.14 <2e-16 ***
x 22.923 1.787 12.82 <2e-16 ***
Signif. codes: O *** 0.001 ** 0.01 * 0.05. 0.1 1
Residual standard error: 26.5 on 198 degrees of freedom Multiple R-squared: 0.4537, Adjusted R-squared: 0.451 F-statistic: 164.5 on 1 and 198 DF, p-value: < 2.2e-16
acf (m1$residual)
pacf (m1$residual)
Box. test(m1$residual, lag=10, type="Ljung")
Box-Ljung test
data: m1$residual
X-squared = 177.09, df = 10, p-value < 2.2e-16
m2=arima (y, order = c(1,0,0), xreg = x)
m2
Call:
arima (x = y, order = c(1, 0, 0), xreg = x)
Coefficients:
ar1 intercept x
0.7084 52.6141 24.4899
s. e 0.0496 4.4589 1.0576
sigma 2 estimated as 346.2: log likelihood = -868.84, aic = 1745.68
Box. test(m2$residual, lag=10, type="Ljung")
Box-Ljung test
data: m2$residual
X-squared = 7.534, df = 10, p-value = 0.6743
See the outputs on page 8 after we fit two models for simulated time series data Yt against Xt:
A) Write down the fitted linear regression. What is the R2 of the linear regression? Is the fitted model adequate? Why?
B) After reviewing the ACF and PACF plots. The researcher decided to fit the model 2 with time series errors for this simulated data. What is the fitted model? Write down the fitted model. What is the residual standard deviation of the model? (c) Based on the available output, is model 2 a good fit for the data? Why?

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:30
Write a function processpeople() that takes the name of a file as a parameter. each line of the file corresponds to information about a person. in particular a line contains either a name (in the form lastname,firstname with no spaces in it) or a name (lastname,firstname) and a year. the function will process the file, creating a person object for each line in the file. the function will print information about each line as it processes it, as well as appending the new person object into a list. make sure to use person methods to display information rather than recreating the work you did for the first problem. once the entire file has been processed, the function returns the list of person objects created from the file. if the file is empty, the function should return an empty list. if the input file cannot be opened, the function should print a message to that effect and then return an empty list. the following shows what would be displayed for two example files which have been provided in the link. the file none.txt does not exist. note that your function must work on an arbitrary file that consists of valid lines. you cannot assume anything about the file except that it contains lines that have the format described above.
Answers: 2
question
Computers and Technology, 22.06.2019 14:00
What are procedures that keep a data base current
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
Ou listened to a song on your computer. did you use hardware or software?
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
What are the 12 colors of the spectrum called?
Answers: 1
You know the right answer?
M1<- lm(yºx, data=df2) summary (m1)
Call:
lm (formula = y "x, data = df2)
R...
Questions
question
Mathematics, 25.05.2021 15:50
Questions on the website: 13722367