Programming the statistical procedures from SAS

How do I generate the slope in a probit procedure?

Reply
New Contributor
Posts: 2

How do I generate the slope in a probit procedure?


Hi everyone,

Below is the code I use to generate estimates with the probit procedure (and some sample data). This gives me a curve where x=chemical concentration and y=percent mortality. I would like to calculate the slope of this curve. Can anyone give me the line of code to add the slope calculation into this?

I use SAS 9.3 for Windows 64-bit.

Many thanks!

*

data sulfate;

input form $ dead total conc @@;

prop = dead/total;

datalines;

A 3 140 0

A 6 127 1000

A 6 69 2000

A 3 22 2500

A 5 68 3000

A 2 69 4000

A 10 94 5000

A 11 66 6000

A 19 74 7000

A 8 22 7500

A 11 21 9000

A 11 21 10000

A 20 31 15000

A 10 31 18000

A 33 51 20000

A 45 56 25000

A 19 20 30000

;

ods rtf;

proc sort;

by form;

run;

proc probit log10 inversecl lackfit;

model dead/total = conc/d = normal itprint;

output out=p p=prob std=std xbeta=xbeta;

by form;

run;

ods rtf close;

Respected Advisor
Posts: 4,756

Re: How do I generate the slope in a probit procedure?

It is not clear what should be called a slope in your probit model (what units are you expecting), but you can get the parameter estimates in a dataset with the ODS statement:

ods output ParameterEstimates=myEstimates;

PG

PG
New Contributor
Posts: 2

Re: How do I generate the slope in a probit procedure?

Thank you so much PG!

Ask a Question
Discussion stats
  • 2 replies
  • 293 views
  • 0 likes
  • 2 in conversation