DATA Step, Macro, Functions and more

how intercept is calculated

Reply
Contributor
Posts: 25

how intercept is calculated

Hi,

 

Does anyone know how intercept is calculated in PROC REG or PROC SURVEYERG when weight is assigned?  Is it calculated as a weighted mean of outcome?  Or is weighted ignored?

 

Thank you,

Momi

Respected Advisor
Posts: 3,867

Re: how intercept is calculated

proc glm data=sashelp.class;
   weight age;
   model weight= / solution;
   run;
proc means data=sashelp.class;
   weight age;
   var weight;
   run;

Capture.PNG

 

Ask a Question
Discussion stats
  • 1 reply
  • 64 views
  • 1 like
  • 2 in conversation