Search code examples
saspercentilecategorization

How to categorize a continuous variable


In SAS I have a continuous variable that go from 0 to 1. I want to categorize it in 10 classes in base to 10 percentiles that I have. There is a PROC or a function that take as input my continuous dustribution and the percentiles and compute the categorization?

How can I fix?

thanks in advance


Solution

  • You can use proc rank or proc univariate to do this. Have a look at the docs and ask a more specific question if you run into problems once you've actually written some code.