Date: Fri, 17 Aug 2007 10:33:49 -0700
Reply-To: Reeza <fkhurshed@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Reeza <fkhurshed@HOTMAIL.COM>
Subject: Re: Programming Logic
Content-Type: text/plain; charset="us-ascii"
On Aug 17, 10:49 am, kv...@EMORY.EDU (Kevin Roland Viel) wrote:
> On Fri, 17 Aug 2007, Reeza wrote:
> > I'm trying to solve a problem whereby there are contractors who bill
> > us for services, and we know how much service is billed and the total
> > amount, but not the individual rate for each each service.
> > Yes, it doesn't make sense, but its what I have to deal with.
> > So the data is in a form as follows:
> > data example;
> > input x1 x2 z1;
> > cards;
> > 2 1 85
> > 1 3 95
> > ;
> > run;
> > Where for example we have two products x1 and x2 and two invoices,
> > totalling 85 and 95 dollars respectively and I need to solve for the
> > individual prices. I think I need to use IML here, any suggestions or
> > help is much appreciated.
> > This is a simplified problem. In real life I have about 30 unknowns
> > and 50 contract equations.
> Hmmm...without testing (or thinking very much because it is LUNCH time on
> ods trace on ;
> proc reg data = example ;
> z1 = x1 x2 ;
> run ;
> quit ;
> ods trace off ;
> Kevin Viel, PhD
> Post-doctoral fellow
> Department of Genetics
> Southwest Foundation for Biomedical Research
> San Antonio, TX 78227- Hide quoted text -
> - Show quoted text -
Thanks Kevin, but that doesn't quite work, need to specify two things
which is the real problem for me, one is there is no intercept and all
coefficients need to be greater than zero as none of the costs will be
negative or even zero.
PS. Almost lunchtime here :P