BookmarkSubscribeRSS Feed
alzadid11
Calcite | Level 5
I wrote this SAS code to get a breusch pagan test. But the breusch pagan value is blank. Why?
 
FILENAME REFFILE '/home/u63739286/exam1.xls';

PROC IMPORT DATAFILE=REFFILE
DBMS=XLS
OUT=WORK.exam1;
GETNAMES=YES;
RUN;

PROC CONTENTS DATA=WORK.exam1; RUN;

proc reg data=exam1;
model Calories= weight height Protein Carbohydrates Calcium gender;
run;

proc gplot data=exam1;
plot Calories*Carbohydrates;
run;

proc model data=exam1;
parms b0 b4;
Calories = b0 + b4*Carbohydrates;
fit Calories/white breusch=(1 diameter);
run;


1 REPLY 1
ballardw
Super User

You should show the LOG, quite often there are notes, warnings and even errors that would say why.

 

Copy the text from your LOG, on the forum open a text box using the </> icon above the message window and paste the text. The text box preserves formatting from the log where the main message windows on this forum will reformat text moving diagnostic characters that SAS often provides and reducing usability of the log text.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 1 reply
  • 1107 views
  • 0 likes
  • 2 in conversation