Help using Base SAS procedures

help with least median square regression problem

Reply
N/A
Posts: 1

help with least median square regression problem

I am having problem with LMS regression problem.

I have setup a work file from a microsoft excel file - homework.xls. The file is two columns (y value is called dSC, x value column is drG1)

I setup the following program in the editor:

data work.homework;

array ab{2} _ALL_;
a=ab[,2]; b=ab[,1];

print "*** Homework LMS regression ***";
optn = j(9,1,.);
optn[2]=3;
optn[3]=3;
optn[8]=3;
call lms(sc,coef,wgt,optn,b,a);

run;


I am getting an error with the array setup portion of the program. Also, I am getting an error where SAS is saying that the LMS subroutine is not setup properly. Any help is greatly appreciated.

Basically, I want to simply run least median regression on a two column dataset from the excel file homework.xls. Nothing fancy. Thanks alot in advance.
Trusted Advisor
Posts: 2,113

Re: help with least median square regression problem

Ask a Question
Discussion stats
  • 1 reply
  • 112 views
  • 0 likes
  • 2 in conversation