Programming the statistical procedures from SAS

Compare distribution of SAME Variable over two data pulls / time

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 99
Accepted Solution

Compare distribution of SAME Variable over two data pulls / time


Hi all,

             I want to compare the same variable distribution over two data pulls or over time.

               What I want to see if the distribution has changed over time statistically. Can i get KS stats for the variable.

              How would i do it.

                 I appreciate all your help.

Regards,

Amit


Accepted Solutions
Solution
‎12-18-2012 01:18 PM
Respected Advisor
Posts: 4,606

Re: Compare distribution of SAME Variable over two data pulls / time

You can get the tests that you want with npar1way like this :

data test;
do time = 10, 11;
     do i = 1 to 25;
          x = rand("NORMAL", time, 1);
          output;
          end;
     end;
run;

proc npar1way data=test edf;
class time;
var x;
run;

PG

PG

View solution in original post


All Replies
Solution
‎12-18-2012 01:18 PM
Respected Advisor
Posts: 4,606

Re: Compare distribution of SAME Variable over two data pulls / time

You can get the tests that you want with npar1way like this :

data test;
do time = 10, 11;
     do i = 1 to 25;
          x = rand("NORMAL", time, 1);
          output;
          end;
     end;
run;

proc npar1way data=test edf;
class time;
var x;
run;

PG

PG
☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 110 views
  • 0 likes
  • 2 in conversation