BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hello,
My question is about the different ways to weight observation with proc logistic. Are those 4 ways equivalent ?
- proc logistic WEIGHT option
- proc logistic FERQ option
- proc logistic EVENTS/TRAILS = type model
- proc logistic on a data base wher all observations appears as often as necessary in the database to simulate the wanted weight.

At first glimpse, it seems that the obtained model is the same in the 4 cases (at least, in the tested example below).

However, the statistics of rank correlation (like Sommer's D) are not the same when we use the WEIGHT option than the 3 other ways.
WEIGHT however is more easy to use as non-integer figures can be used.

=> Does someone have some knowledge on the difference and advantages of the 4 presented ways ? Do they always give the same results (execpt for rank correlation) ?

Here is a SAS example :
DATA TABLE_trials;
input Y X trials events ;
datalines;
1 1.9 1 1
1 1.4 10 10
0 .8 10 0
0 .7 1 0
1 1.3 1 1
0 .6 1 0
1 1 1 1
0 1.9 1 0
0 .8 1 0
0 .5 1 0
;
DATA TABLE_nb (DROP = i trials events);
SET TABLE_trials ;
do i = 1 TO trials ; output ; end ;
run ;
/*1*/ proc logistic DATA=TABLE_trials ; model Y = X ; weight trials ;
/*2*/ proc logistic DATA=TABLE_trials ; model Y = X ; freq trials ;
/*3*/ proc logistic DATA=TABLE_trials ; model events/trials = X ;
/*4*/ proc logistic DATA=TABLE_nb ; model Y = X ; run;
1 REPLY 1
StatDave
SAS Super FREQ
I think this note may address your question:

http://support.sas.com/kb/22600

The answers to many questions can be found in the Samples and SAS Notes in our searchable knowledgebase, http://support.sas.com/kb. You can use the search engine there to find the answers you need.

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
  • 1 reply
  • 2510 views
  • 0 likes
  • 2 in conversation