SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
mpiotro2
Calcite | Level 5

I'm having an issuing adding a "lackfit" statement to a proc regression model... I keep getting a "0" answer for my Pure Error Sum of Squares value, which I don't think is correct. If my data set has 3 X variables, is the lackfit statement still functional? 

 

HW4 - ANOVA Table.PNG

HW4 - Parameter Estimates.PNG

ObsCITYYX1X2X3
1111.258716.56.2
2213.464320.56.4
3340.763526.39.3
445.369216.55.3
5524.8124819.27.3
6612.764316.55.9
7720.9196420.26.4
8835.7153121.37.6
998.771317.24.9
10109.674914.36.4
111114.5789518.16
121226.976223.17.4
131315.7279319.15.8
141436.274124.78.6
151518.162518.66.5
161628.985424.98.3
171714.971617.96.7
181825.892122.48.6
191921.759520.28.4
202025.7335316.96.7
1 REPLY 1
PaigeMiller
Diamond | Level 26

Lack-of-fit/pure error can only be computed if you have one or more exact replicates of your points (among the x-variables). You have zero exact replicates of your data points.


So SAS is giving the correct output.

--
Paige Miller

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 925 views
  • 1 like
  • 2 in conversation