Advertisement

06.14.2007 at 10:00AM PDT, ID: 22634401
[x]
Attachment Details

Sampling / Weight in SAS proc logistic

Asked by Elmo_Yang in SAS

Tags: sas, weight, proc, logistic

I have a SAS table and need to run a logistic regression. Two variables divide my population into 20 different categories. It happens that two of these categories are way larger than the others, with more than 80% of the observations. I am thinking of creating a sample of those two categories and reduce them to 10% of the original size. If I can manage to get a good sample, how can I implement this sampling/weight it in the proc logistic? I want to model the likelihood of an observation being A,B,C or D (as defined by the output Variable B )
                                         Variable B
Variable A                     A      B     C     D  
          0                        70%  12%  1%  1%
          1                        1%  1%  1%  1%
          2                        1%  1%  1%  1%
          3                        1%  1%  1%  1%
          4                        1%  1%  1%  1%
Start Free Trial
[+][-]06.14.2007 at 08:40PM PDT, ID: 19289037

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: SAS
Tags: sas, weight, proc, logistic
Sign Up Now!
Solution Provided By: lwal036
Participating Experts: 2
Solution Grade: A
 
 
[+][-]10.15.2007 at 03:18AM PDT, ID: 20076847

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32