options metaPort=8561 metaServer=server-address metaRepository=Foundation metaUser=user-ID metaPass=password;
Procedure
|
Item Store Restrictions
|
---|---|
GENMOD
|
Training code is not
included
|
GLIMMIX
|
Training code is not
included
|
GLM
|
Training code is not
included
|
GLMSELECT
|
Fit statistics are not
included
|
LOGISTIC
|
None
|
MIXED
|
Training code is not
included
|
REG
|
Training code or fit
statistics are not included
|
/* PROC LOGISTIC specifies the STORE statement to create an item store. * / proc logistic data=sampsio.hmeq; class job; model bad = loan value job; store work.logisticStore; run; /* Set up the meta data connection system options. */ options metaPort=8561 metaServer=server-address metaRepository=Foundation metaUser=user-ID metaPass=password; /* Load the macros. */ %aamodel; /* Register the model in the SAS Metadata Repository. */ %aa_model_register(modelname=LogisticTest, modeldesc=%nrbquote(Logistic Test), itemstore=work.logisticstore, register=Y, mrPath=%NRBQUOTE(/User Folders/user-ID/My Folder/), spk=N, spkfolder=c:\temp\, data=sampsio.hmeq) ;
/* PROC LOGISTIC specifies the STORE statement to create an item store. * proc logistic data=sampsio.hmeq; class job; model bad = loan value job; store work.logisticStore; run; /* Set up the meta data connection system options. */ options metaPort=8561 metaServer=server-address metaRepository=Foundation metaUser=user-ID' metaPass=password; /* Load the macros. */ %aamodel; /* Create an SPK file; do not register the model in the SAS Metadata Repository. */ %aa_model_register(modelname=LogisticTest, modeldesc=%nrbquote(Logistic Test), itemstore=work.logisticstore, register=N, spk=Y, spkfolder=c:\temp\, data=sampsio.hmeq) ;
c:\temp
folder.
The folder name is the UUID of the model. The name of the SPK file
is miningResults.spk. The SPK file can be imported to SAS Decision Manager
using the import from SAS Model Package File method.
/* Train high performance model */ proc hplogistic data=gplib.hmeqid; class job reason; id value; class bad ; model bad = clage clno debtinc delinq derog mortdue job reason; output out=gplib.hpregid_score pred; code file='c:\temp\score.sas'; run; /* Set up metadata connections */ options metaPort=8561 metaServer=server-address metaRepository=Foundation metaUser=user-ID metaPass=password; /* Load the macros. */ %aamodel; /* Register the model in the SAS Metadata Repository */ %aa_model_register (modelname=Model1, modeldesc=%nrbquote(First Model for registration), register=Y, mrPath=%NRBQUOTE(/User Folders/user-ID/My Folder/), spk=N, spkfolder=c:\temp\, data=sampsio.hmeq, target=bad, level=BINARY, miningfunction=Classification, miningalgorithm=Regression, scorecodefile=c:\temp\score.sas) ;