Suppose two cases differ by one unit on x but have the same values of z and m. How much does the fitted outcome differ? Multiple regression can answer that question. It cannot tell you what would happen if you intervened to change x unless the study supports that interpretation.
In this QuickPLS Pro exercise, you will fit ordinary least squares (OLS) to a continuous score, check the fitted equation against an independent reference and turn the output into a results paragraph. Download the 120-case observed-variable workshop CSV. Use the file without “challenge” in its name for this run. The variables and units are synthetic.
Choose the outcome before opening the model
Here y is the outcome. Use x, z and m as predictors. Leave case_id, group, weight and binary_outcome out of this model. Including the column called weight as an ordinary predictor would estimate a coefficient for that column, not give each row a larger or smaller role in fitting the model. The reference is explicitly unweighted.
OLS fits the equation that minimises the sum of squared residuals. Each residual is observed y minus fitted y. Squaring prevents negative and positive residuals from cancelling out, and gives larger misses more influence on the fitting criterion. Thinking about that objective helps explain why you should inspect the data and fit before quoting coefficients.
Fit the model in QuickPLS Pro
- Import the CSV and select it as the active dataset. Open Analyze… → Regression under Standalone analysis, then choose Ordinary least squares under Regression type.
- Set Outcome variable to
yand selectx,zandmunder Predictors. Add no extra controls for this comparison. Leave Include intercept enabled. Omitting it forces the fitted value atx = z = m = 0to equal zero and changes the question you are fitting. - Set Robust standard errors to HC3, Test direction to Two-sided and Confidence level (%) to
95. Review the model and readiness information, then choose Start calculation. - Open the completed result. In Run details, confirm 120 analysed cases. Expect 116 residual degrees of freedom: 120 observations minus three slopes and one intercept. If that count differs, inspect the data and variable assignments before comparing the coefficients. Then open Coefficients and Model fit. Documented QuickPLS Pro steps and answer check.
Read one coefficient in a sentence
Here are the independent Python reference values, rounded for reading. These are not presented as a QuickPLS Pro 1.03.22 desktop result.
| Term | Estimate | HC3 standard error | 95% Student-t interval |
|---|---|---|---|
| Intercept | −0.0606 | 0.0756 | −0.2103 to 0.0892 |
x |
0.2916 | 0.1102 | 0.0734 to 0.5099 |
z |
0.0018 | 0.0721 | −0.1410 to 0.1446 |
m |
0.6888 | 0.1044 | 0.4820 to 0.8956 |
The fitted equation is predicted y = −0.0606 + 0.2916x + 0.0018z + 0.6888m. For x, a one-unit higher value corresponds to about 0.292 units higher fitted y, comparing profiles with the same z and m. The estimated difference is expressed in units of y. It is not 29.2% and it is not the unadjusted relationship between x and y.
The interval for x ranges from about 0.073 to 0.510 units. For z, the estimate is almost zero but the interval spans negative and positive differences. Say that the adjusted estimate was near zero and report the interval. A large p-value does not prove that the population coefficient is zero. For example, if a difference of 0.10 units in either direction would matter in your own study, this interval would not exclude all such differences. Do not drop a prespecified control just to make the coefficient table look cleaner.
HC3 changes the estimated standard errors. Changing from conventional to HC3 standard errors on the same OLS equation and sample should not change the fitted slopes. It can change the confidence intervals and tests. HC3 addresses nonconstant error variance, not dependence between observations, omitted predictors or a misspecified mean relationship. MacKinnon and White’s work on heteroskedasticity-consistent covariance estimates.
Use a case to check what the fitted values mean
Look up o046 in the CSV. This case has x = 1.082238, z = −0.862644, m = −1.099071 and observed y = 1.387689. Substituting the values into the reference equation gives a fitted value of approximately −0.503530. The residual is 1.387689 − (−0.503530) ≈ 1.891219. This case was higher than the model fitted, even though the coefficient of x was positive. A fitted difference between two profiles and a prediction error for one case are different quantities.
The model summary reports R² ≈ 0.506 and residual standard error ≈ 0.833, in the units of y. R² describes the share of observed outcome variation accounted for by the fitted model on these cases, not its accuracy on new cases. The usual intercept-model adjustment for three predictors gives adjusted R² ≈ 0.493. Before treating this as an adequate model, inspect residual patterns and unusually influential observations. If the goal is prediction, assess performance on cases not used to fit the equation.
Try it: Keep z and m unchanged and compare x = 0 with x = 2. What changes in fitted y? Answer: 2 × 0.2916 = 0.5832 units, approximately. You do not need the intercept or the other predictor values for this difference because they are identical in both profiles.
Example write-up: “We fitted an unweighted OLS regression with an intercept using 120 complete synthetic observations. In a model that also included z and m, a one-unit higher x was associated with 0.292 units higher fitted y (HC3 95% CI 0.073 to 0.510). The sample R² was 0.506. The adjusted estimate for z was close to zero, with a 95% interval from −0.141 to 0.145.”