+ Reply to Thread
Results 1 to 2 of 2

Thread: Macros?

  1. #1
    Points: 4, Level: 1
    Level completed: 7%, Points required for next Level: 46

    Thanked 0 Times in 0 Posts



    I am relatively new here and trying to work on some homework. I've been doing rather well in my SAS class, however I just do not seem to understand macros. We have problem given to us and I honestly have no idea on where to begin.

    Write a macro to fit a multiple regression model where Y is identified as one macro variable, and each X is identified as another macro variable. Your macro should do the following:

    a.Fit the model.

    b.Plot the residuals versus each X.

    c.Plot the residuals versus Y.

    The macro parameters should include the data set name, the response variable, the predictor variables, and a title.

    The book I'm using is utterly useless in this regard, so any help would be greatly appreciated.

  2. #2
    Omega Contributor
    Points: 35,219, Level: 100
    Level completed: 0%, Points required for next Level: 0
    hlsmith's Avatar
    Not Ames, IA
    Thanked 1,125 Times in 1,088 Posts

    Re: Macros?

    If you have not figure this out yet, let us know.

    First write the general code to just perform all of these procedures, forget about the macro. If you want, then post it and we can work on adding the macro component.
    Stop cowardice, ban guns!

+ Reply to Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Advertise on Talk Stats