BookmarkSubscribeRSS Feed
Marfi
Calcite | Level 5


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;

2 REPLIES 2
PGStats
Opal | Level 21

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
Marfi
Calcite | Level 5

Thank you so much PG!

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1469 views
  • 0 likes
  • 2 in conversation