BookmarkSubscribeRSS Feed
LABRADOR
Obsidian | Level 7

 

  1. Build a model using Debt as the dependent variable and test the effect of Interest and Relative Interest after controlling for Year and Budget. What is the unique variance explained by Interest and Relative Interest? For this problem use the GDP data.

     

    3.7%

     

    64.7%

     

    12.8%

     

    99.2%

 

        Interest         BEST12.
        'Relative Interest'n BEST12. ;
    INFORMAT
        Year             BEST12.
        GDP              BEST12.
        Budget           BEST12.
        Surplus          BEST12.
        'Relative Surplus'n BEST12.
        Debt             BEST12.
        Interest         BEST12.
        'Relative Interest'n BEST12. ;
    INFILE 'C:\Users\ssd506\AppData\Roaming\SAS\EnterpriseGuide\EGTEMP\SEG-5828-49c58181\contents\GDP-a3d169860cb14d7da79cda1e8cfaaaee.txt'
        LRECL=36
        ENCODING="WLATIN1"
        TERMSTR=CRLF
        DLM='7F'x
        MISSOVER
        DSD ;
    INPUT
        Year             : BEST32.
        GDP              : BEST32.
        Budget           : BEST32.
        Surplus          : BEST32.
        'Relative Surplus'n : BEST32.
        Debt             : BEST32.
        Interest         : BEST32.
        'Relative Interest'n : BEST32. ;
RUN;

What test should I run to do this?

 

 

1 REPLY 1
PaigeMiller
Diamond | Level 26

What test should I run to do this?

 

First you have to decide what model to build and what algorithm to use to fit the model.

 

Tests are meaningless until you have fit the model, and the idea of testing requires an hypothesis to be clearly stated, which has not happened. (For example, you might want to test that the effect of Interest is zero or some other number ... but as I said, this has not been stated)

 

So how are you going to fit this model (what algorithm or what PROC)? What hypothesis are you going to test?

 

 

--
Paige Miller

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 653 views
  • 0 likes
  • 2 in conversation