The MODEL procedure discards the last observation when reading a data set from a caslib in SAS® Viya®


The last observation is excluded in PROC MODEL and the results are incorrect when the following conditions are met:

To avoid the problem, use PROC TMODEL instead of PROC MODEL. You can also read in the data locally instead of from a caslib.