Question

Consider the dataset below, it is a nonstationary time series dataset. Monthly Unemployed Young Women between...

Consider the dataset below, it is a nonstationary time series dataset.

Monthly Unemployed Young Women between Ages 16 and 19 in the U.S. from January 1961 to August 2002 (in Thousands)

*note the data set is only a part of a whole so please I need the R codes so I can apply it to my whole dataset*

Year Jan Feb Mar Apr May June July Aug Sept Oct Nov Dec
1990 535 543 542 523 544 529 514 561 562 533 565 574
1991 659 578 587 608 579 586 620 618 586 620 594 661
1992 594 601 600 575 621 715 659 614 655 552 652 621
1993 629 621 614 584 661 601 560 571 576 591 589 567
1994 558 587 590 654 566 596 561 587 550 614 531 560
1995 575 565 581 630 600 594 658 584 622 585 610 625
1996 621 576 568 584 577 556 531 578 542 553 584 603
1997 604 646 572 551 618 551 638 546 582 516 545 554
1998 483 492 526 505 523 562 505 547 519 581 516 465
1999 567 551 528 546 502 522 498 517 587 530 515 472
2000 465 512 556 482 496 383 494 506 489 488 507 482
2001 499 473 527 515 465 513 549 523 531 542 540 584
2002 612 547 561 591 570 594 587 523

A. Build an appropriate model for the series.

Please use RStudio for the problem, also please include codes and packages/libraries used, for me to use to review.

Thank you!

Homework Answers

Answer #1

R-codes for ARIMA time series model building

#Read data from Excel csv file
data=read.csv(file.choose(),header = T)

#convert data frame in to vector-matrix
data.vec <- as.vector(t(as.matrix(data[,2:13])))/1000

#convert vector data in to time sries dat
data.ts <- ts(data.vec, c(1990,1), end = c(2001,12), frequency = 12)

#Decompose time series
data.decompose<-decompose(data.ts)

#Plot components of time series
plot(data.decompose)

#Build ARIMA model

AutoArimaModel=auto.arima(data.ts)
AutoArimaModel

summary(AutoArimaModel)

# Forecast for next 12 months
forecast(AutoArimaModel,12)

plot(forecast(AutoArimaModel,12))

Know the answer?
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
Similar Questions
Construct a scatter plot diagram for the variables SAT Verbal and SAT Math and then using...
Construct a scatter plot diagram for the variables SAT Verbal and SAT Math and then using your scatterplot do the variables appear to be positively, negatively or not related at all? STATE MEAN SAT Verbal MEAN SAT Math NY 497 510 Conn 515 515 Mass 518 523 NJ 501 514 NH 522 521 D.C. 489 476 Maine 505 501 Penn 501 502 Delaware 500 499 Georgia 494 493 RI 503 502 Virginia 515 509 NC 499 507 Maryland 511 515...
Is the math SAT score correlated with verbal SAT scores? J. What would you predict the...
Is the math SAT score correlated with verbal SAT scores? J. What would you predict the math SAT score would be for a state which has a verbal SAT score of 510? STATE Mean SAT I Verbal Mean  SAT I Math New York 497 510 Connecticut 515 515 Massachusetts 518 523 New Jersey 501 514 New Hampshire 522 521 D.C. 489 476 Maine 505 501 Pennsylvania 501 502 Delaware 500 499 Georgia 494 493 Rhode Island 503 502 Virginia 515 509...
I'm working on the below problem: For this question, you are to write a program that...
I'm working on the below problem: For this question, you are to write a program that reads the data in the file state_satscores_2004.txt. Each line of this file has name of a state, mean Verbal SAT score, and mean Math SAT score. After reading the data, a. Print the state with the highest mean Verbal SAT score b. Print each state that has a mean Math SAT score greater than 500 Submit the code and the output from your program....
Describe what distribution we use when calculating test statistics Z OR T STATİSTİCS? STATE ORDER2019 ORDER2018...
Describe what distribution we use when calculating test statistics Z OR T STATİSTİCS? STATE ORDER2019 ORDER2018 Alabama 536 559 Alaska 487 514 Arizona 499 523 Arkansas 554 562 California 499 498 Colorado 556 539 Connecticut 513 509 Delaware 476 501 Florida 471 498 Georgia 473 491 Hawaii 469 486 Idaho 517 543 Illinois 591 576 Indiana 475 499 Iowa 575 593 Kansas 563 577 Kentucky 563 550 Louisiana 546 564 Maine 453 506 Maryland 491 508 Massachusetts 509 511 Michigan...
Table 2. The mean response times per block for each participant that was tested. 2f 2g...
Table 2. The mean response times per block for each participant that was tested. 2f 2g 2i 2j 2e /3 Blocks average of average of average of /6 /6 /6 /6 Participants 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8 & 10 11 & 13 14 & 16 Difference score t-value p (1-tailed) p (2-tailed) 1 749 703 776 502 745 875 811 688 833 745 557 1136 658 529 794...
3. (Exercises 8.11, 8.20, using R) (3 pt) Cooling method for gas turbines. Refer to the...
3. (Exercises 8.11, 8.20, using R) (3 pt) Cooling method for gas turbines. Refer to the Journal of Engineering for Gas Turbines and Power (January 2005) study of a high-pressure inlet fogging method for a gas turbine engine. We now consider the interaction model for heat rate (y) of a gas turbine as a function of cycle speed (x1) and cycle pressure ratio (x2), E(y) = β0 + β1x1 + β2x2 + β3x1x2. Import the data from the file “GASTURBINE.txt”...
3. (Exercise 4.32, using R) (2 pt) Cooling method for gas turbines. Recall the Journal of...
3. (Exercise 4.32, using R) (2 pt) Cooling method for gas turbines. Recall the Journal of Engineering for Gas Turbines and Power (January 2005) study of a high-pressure inlet fogging method for a gas turbine engine, where we fitted a first-order model for heat rate (y) as a function of speed of the engine (x1), inlet temperature (x2), exhaust temperature (x3), cycle pressure ratio (x4), and air mass flow rate (x5). Now, in this example, a researcher hypothesized that the...
Your firm works in construction and buys ASTM A325M8S bolts in very large numbers. You are...
Your firm works in construction and buys ASTM A325M8S bolts in very large numbers. You are interested in purchasing bolts from different suppliers and have obtained and tested samples of 200 bolts from three suppliers: Allnutt, Boltzman, Coachers.You have tested these in your new bolt testing machine, purchased after you had discovered your old bolt testing machine was performing erratically. (For the purposes of this question, you are safe to assume that the new machine works perfectly and that its...