# 36. OLS regression

## Purpose

How do digital investment, analytics capability, agility, and market turbulence explain business performance?

## Practice study

- File: [business-outcomes-observed.csv](../samples/business-outcomes-observed.csv)
- Observations: 500
- Data type: deterministic synthetic instructional data
- Complexity: a realistic multivariable observed-data analysis

## Exact procedure

1. Start QuickPLS and choose **New Project**. Enter a readable project name such as **OLS regression Tutorial** and choose a local `.qpls` destination.

2. Open **Data**, choose **Import Data**, select **business-outcomes-observed.csv**, keep the detected header row, review the preview, and choose **Import**. Confirm 500 observations are available.

   ![OLS regression imported data](../screenshots/ols-regression/01-data-ready.png)

3. This method does not require a latent-variable diagram. In its setup screen use these roles: Outcome: business_performance. Predictors: digital_investment, analytics_capability, organizational_agility, and market_turbulence. Controls: firm_age_years and employee_count_log.

4. Review the selected outcome, predictors, groups, or analysis variables. Remove case_id and every unused teaching/reference column from the analysis selection.

   ![OLS regression prepared model or variable roles](../screenshots/ols-regression/02-variable-roles.png)

5. Check that every required role is populated with a numeric variable and that outcome/predictor selections do not overlap.

6. Use **Calculate → Regression → Ordinary least squares**.

   ![OLS regression calculation setup](../screenshots/ols-regression/03-calculation-setup.png)

7. Complete the method-specific settings:

- Keep the intercept enabled
- Request the standard diagnostic outputs

8. Read **Readiness**, leave **Open Results when finished** selected, and choose **Start calculation** once. Wait for **Completed**; do not close the project while the result is being saved.

9. In **Results**, confirm **OLS regression** is selected and inspect these outputs in order:

1. Model summary and ANOVA
2. Coefficients
3. Diagnostics
4. Predictions and residuals
5. Diagnostic charts

   ![OLS regression primary result](../screenshots/ols-regression/04-results-primary.png)

   ![OLS regression secondary result](../screenshots/ols-regression/05-results-secondary.png)

10. Choose **Save Report** to preserve the exact result. Use **Export** for the needed table/report format. Close and reopen the project once and confirm the saved result remains selectable.

## Reading guidance

- The data are deterministic synthetic teaching data. They are suitable for reproducing the workflow, not for substantive publication claims.
