Adding Results to an Existing Worksheet

Next, you want to perform a linear regression analysis and add the results to the Summary Statistics worksheet. To run a linear regression analysis:
  1. In the Original Data worksheet, select the Excel data.
  2. On the SAS tab, click Tasks and select Regressionthen selectLinear Regression. The Choose Data dialog box appears.
  3. For the input data source, select Excel data. By default, the input data source is the range of Excel data in the Original Data worksheet. You can also use Button that enables you to select a cell or range in an Excel worksheet to select the input data.
  4. For the location of the results, select Existing worksheet, and then click Button that enables you to select a cell or range in an Excel worksheet. The SAS Add-In dialog box appears.
  5. In the Summary Statistics worksheet, select cell G1. In the SAS Add-In dialog box, click OK.
    After completing these steps, the content in your Choose Data dialog box should look similar to the following display:
    Choose Data dialog box for the Linear Regression task
    Click OK. The Linear Regression task appears.
  6. In the Data panel, assign the VALUE variable to the Dependent variable role.
    Data panel in the Linear Regression task
    In the selection pane, click Titles.
  7. In the Titles panel, select Footnote, and then clear the Use default text check box. Delete the text in the Text for section: Footnote box.
    Click Run.
    The results from the linear regression analysis open in the Summary Statistics worksheet. Because Seaside was selected as the style for the results in the SAS Options dialog box, the results from the Linear Regression task automatically use the Seaside style.
    Final contents of the Summary Statistics worksheet