Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: forcing stata densities to be within 1

From   [email protected]
To   [email protected]
Subject   st: forcing stata densities to be within 1
Date   Fri, 7 Jan 2005 11:46:25 -0500

Does anyone know how to make stata densities to be no more than 1?  Here is an
example. I have two variables x  and y and want to compare their densities. So
I do the following,

a) kdensity x, nograph gen (x fx);
b) kdensity y, nograph gen(fy) at(x);

Then I want to do:

c) line fx fy x, options.

My problem is that in the data I am working with, I find that fy exceeds 1. How
do I make fy to be no higher than 1?

Would appreciate any hints?


*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index