Date: Thu, 10 May 2001 10:33:08 -0500
Reply-To: Jonathan Goldberg <jonathan@MATLOCK.WUSTL.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jonathan Goldberg <jonathan@MATLOCK.WUSTL.EDU>
Subject: Re: Can I generate SAS-code from pred from a GLM
Content-Type: TEXT/PLAIN; charset=US-ASCII
Troels Lind <lind@DSR.KVL.DK> asks:
>I am doing a data analyses on a dataset and my goal is to build a model
>that
>can predict the variable mfat from the other variables in the datasat. I
>am
>using a PROC GLM to find predicted values and compare them with actual
>data.
>Easy enough. My question is: Is it possible to have GLM to generate
>SAS-code
>that describe the model, so I can validate the model against an another
>dataset and implement it an a SAS-program
The Score procedure is intended to solve this problem. It takes two data
sets as input: a coefficients data set, produced by e.g. REG or GLM, and a
data set containing data to be scored. The output is a data set with the
predicted values added.
Jonathan Goldberg
Missouri Alcoholism Research Center
Dept. of Psychiatry
Washington University School of Medicine
40 N. Kingshighway, Suite One
St. Louis, MO 63108
314-286-2212
|