Import a Model

Import a Model

In this exercise, you import a model using the user model template:
  1. Log on to SAS Model Manager.
  2. In the 2012 version of the HmeqVars project, right-click Models and select Import fromthen selectLocal Files.
  3. From the Choose a model template box, select ProcArborModelTemplate. The custom properties and files appear in the right pane.
  4. In the Name field, enter ProcArbor.
  5. In the left pane, expand Desktop to <drive>:\Tutorial8\Samples\Model8. The Local Files dialog box displays the template in the right pane and the files to import in the left pane:
    ProcArborModelTemplate in the Local Files dialog box
  6. From the left pane, drag the following files to the corresponding fields in the model template:
    Filename
    Template Field Name
    importance8.sas7bdat
    importance.sas7bdat
    modelinput8.sas7bdat
    modelinput.sas7bdat
    modeloutput8.sas7bdat
    modeloutput.sas7bdat
    nodestat8.sas7bdat
    nodestat.sas7bdat
    path8.sas7bdat
    path.sas7bdat
    rules8.sas7bdat
    rules.sas7bdat
    score8.sas
    score.sas
    target8.sas7bdat
    target.sas7bdat
    Here is the Local Files dialog box after the files have been assigned:
    The Local Files dialog box with the new model template fields complete.
  7. Click OK. The ProcArbor model appears under the Models folder.
    The Models Folder with Proc Arbor

Verify Model Properties

Verify some model properties:
  1. In the Project Tree, expand the Models folder and select ProcArbor.
  2. In the Properties View, verify BAD as the value of the Target Variable property.
  3. Verify that the Score Code Type property is DATA step.
Here is the ProcArbor model in the SAS Model Manager window:
ProcArbor Model Properties

Map Model Output Variables to Project Output Variables

Because the project output variable name is not the same as the model output variable name, the output variables must be mapped. To map the variables, follow these steps:
  1. Right-click the model name, ProcArbor.
  2. Select the Set Model Output Mapping option to open the Set Model Output Mapping window.
  3. Click the Model Variables column for score, select P_BAD1, and click OK.
    ProcArbor Model Mapping