## Compare distribution of SAME Variable over two data pulls / time

Solved
Frequent Contributor
Posts: 99

# 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.

Regards,

Amit

Accepted Solutions
Solution
‎12-18-2012 01:18 PM
Posts: 5,053

## 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

All Replies
Solution
‎12-18-2012 01:18 PM
Posts: 5,053

## 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 and locked.