Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 449205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:44:46+00:00 2026-05-12T21:44:46+00:00

I want do fit some sort of multi-variate time series model using R. Here

  • 0

I want do fit some sort of multi-variate time series model using R.

Here is a sample of my data:

   u     cci     bci     cpi     gdp    dum1 dum2 dum3    dx  
 16.50   14.00   53.00   45.70   80.63  0   0    1     6.39 
 17.45   16.00   64.00   46.30   80.90  0   0    0     6.00 
 18.40   12.00   51.00   47.30   82.40  1   0    0     6.57 
 19.35   7.00    42.00   48.40   83.38  0   1    0     5.84 
 20.30   9.00    34.00   49.50   84.38  0   0    1     6.36 
 20.72   10.00   42.00   50.60   85.17  0   0    0     5.78 
 21.14   6.00    45.00   51.90   85.60  1   0    0     5.16 
 21.56   9.00    38.00   52.60   86.14  0   1    0     5.62 
 21.98   2.00    32.00   53.50   86.23  0   0    1     4.94 
 22.78   8.00    29.00   53.80   86.24  0   0    0     6.25 

The data is quarterly, the dummy variables are for seasonality.

What I would like to do is to predict dx with reference to some of the others, while (possibly) allowing for seasonality. For argument’s sake, lets say I want to use “u”, “cci” and “gdp”.

How would I go about doing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T21:44:47+00:00Added an answer on May 12, 2026 at 9:44 pm

    If you haven’t done so already, have a look at the time series view on CRAN, especially the section on multivariate time series.

    In finance, one traditional way of doing this is with a factor model, frequently with either a BARRA or Fama-French type model. Eric Zivot’s “Modeling financial time series with S-PLUS” gives a good overview of these topics, but it isn’t immediately transferable into R. Ruey Tsay’s “Analysis of Financial Time Series” (available in the TSA package on CRAN) also has a nice discussion of factor models and principal component analysis in chapter 9.

    R also has a number of packages that cover vector autoregression (VAR) models. In particular, I would recommend looking at Bernhard Pfaff’s VAR Modelling (vars) package and the related vignette.

    I strongly recommend looking at Ruey Tsay’s homepage because it covers all these topics, and provides the necessary R code. In particular, look at the “Applied Multivariate Analysis”, “Analysis of Financial Time Series”, and “Multivariate Time Series Analysis” courses.

    This is a very large subject and there are many good books that cover it, including both multivariate time series forcasting and seasonality. Here are a few more:

    1. Kleiber and Zeileis. “Applied Econometrics with R” doesn’t address this specifically, but it covers the overall subject very well (see also the AER package on CRAN).
    2. Shumway and Stoffer. “Time Series Analysis and Its Applications: With R Examples” has examples of multivariate ARIMA models.
    3. Cryer. “Time Series Analysis: With Applications in R” is a classic on the subject, updated to include R code.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 269k
  • Answers 269k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer ...Even if I have the index, if the table is… May 13, 2026 at 1:17 pm
  • Editorial Team
    Editorial Team added an answer As in your other question: with BeautifulSoup you're parsing in… May 13, 2026 at 1:17 pm
  • Editorial Team
    Editorial Team added an answer You've set up a proxy to your local Tor instance… May 13, 2026 at 1:17 pm

Related Questions

Currently my workflow with Emacs when I am coding in C or C++ involves
So one of the common tasks that I do as a programmer is debugging
I want to develop a system that is similar to calculation of salary. A
I have a copy of emacs that I use on a couple of different

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.