Programming the statistical procedures from SAS

P values for proc logistic explanatory variables in paramestimates

Reply
Occasional Contributor
Posts: 9

P values for proc logistic explanatory variables in paramestimates

Hi,

 

Using v9.4.

 

Am trying to get p-values for each of my explanatory variables from a logistic regression using proc logistic.

 

Code looks like this, and the outest file looks fine, except I'd like to see individual p values in the output.

 

proc logistic data = regc.r_sec_&i. noprint outest=creg.m2_s&i.;
model y (event = '1') = duration lvol1 lvol2 lvol3 ispread1 mkt1 mkt2 mkt3 c_dist1 dist_x_m connect connect_x_dist orderimbal;
run;

 

Any help would be great - thanks.

 

Ed

Grand Advisor
Posts: 16,931

Re: P values for proc logistic explanatory variables in paramestimates

What do you mean by individual p-values? 

 

Have you looked at the Parameter Estimate table, after removing noprint? 

Occasional Contributor
Posts: 9

Re: P values for proc logistic explanatory variables in paramestimates

Hi Reeza,

 

Thanks for your response.

 

I am hoping to find the significance of each of the explanatory variables.

 

When I print the output, I get a table 'Analysis of Maximum Likelihood Estimates' that gives me the estimate, error, wald-chi-square and Pr>ChiSq.

 

I guess I have two questions form that:

 1. is there a way of outputting those values for each of the input parameters into a separate table? (without having to open the results veiwer each time, as I am running a few regressions).

 2. what can I infer from the Pr>ChiSq value? is it similar to a p-value in the sense that a small ("<.0001") is highy significant?

 

I am doing further reading on Q2 - as this is obviously more fundamental to the research I am conducting.

 

Thanks,

Ed

 
Grand Advisor
Posts: 16,931

Re: P values for proc logistic explanatory variables in paramestimates

Add a line to your regression, it will create a data set called PE with the desired output. 

 

ods output ParameterEstimates=PE;

 

2. That is the p-value. I HIGHLY recommend reading up on this as well as P-Hacking. 

 

 

Occasional Contributor
Posts: 9

Re: P values for proc logistic explanatory variables in paramestimates

Thanks Reeza.

 

That worked well.

 

And yes, thanks for that advice, noted and taken.

 

Ed

Ask a Question
Discussion stats
  • 4 replies
  • 147 views
  • 2 likes
  • 2 in conversation