DATA Step, Macro, Functions and more

Linear Regression : Macro Basics

Reply
Occasional Contributor
Posts: 9

Linear Regression : Macro Basics

A macro to run a simple linear regression with dependent and independent variables as macro parameters.

 

Dataset: sashelp.cars

Dependent variable =msrp; Independent variables = enginesize, cylinders, horsepower

Super User
Posts: 19,769

Re: Linear Regression : Macro Basics

What's your question? Please detail your question and show what you've tried and the issues your having.  

Respected Advisor
Posts: 4,919

Re: Linear Regression : Macro Basics

Make the regression work as plain SAS code. Then it is a simple matter to transform it into a macro.

PG
Ask a Question
Discussion stats
  • 2 replies
  • 290 views
  • 0 likes
  • 3 in conversation