[R] empirical df, cdf and crossing points

2010-09-23 Thread anupam
Hello, I am using survey data with two stage sampling for two sub-populations. I am looking for a package (or packages) that can do the following for a measure of weight. The sub-populations are M (male) and F (female). (1) empirical df and cdf for weight, and compare that across two sub-

Re: [R] empirical df, cdf and crossing points

2010-09-23 Thread Michael Bedward
Hello, Not sure about packages to suggest but some of this can be done with base stats... # Generate densities using common from, to and n args male - rnorm(100, 80, 10) female - rnorm(100, 60, 10) male.d - density(male, from=0, to=150, n=1024) female.d - density(female, from=0, to=150, n=1024)