Jhajj et al (2006) introduced a family of estimators by using the known population proportion of elements possessing an attribute in simple random sampling and two phase sampling. The efficiency of this estimator is better than mean per unit estimator and is equal to the efficiency of the linear regression estimator. In this article, we propose a ratio-type estimator by using the technique of Roy (2003). The proposed estimator has an improvement over mean per unit estimator as well as Jhajj et al (2006) estimator in simple random sampling and two phase sampling. We use three data sets to examine the improvement in efficiency. The data sets we use are the same as used by Jhajj et al (2006).