Discount retailers have been on a tear since the beginning of the Great Recession. Once looked upon with disdain, companies like Dollar General, Family Dollar (NYSE: FDO), and Dollar Tree have beaten the broader market handily over the last few years, making investors very happy and a whole lot richer. To determine whether it's time get in on this action, I've decided to see how each of these companies has performed in terms of three important retail industry metrics. We cast our gaze today upon Family Dollar.

1. Revenue growth
The first variable to consider when gauging the quality of a retail stock, or most stocks for that matter, is sales or revenue. You'll find this figure at the top of a company's income statement -- not coincidentally, this is why revenue is sometimes referred to as the "top line." What you want is a revenue figure that grows with time. And the best type of growth is organic growth -- that is, the process of business expansion from productivity at existing stores, as opposed to business expansion from the construction of new ones. In the industry, the former is known as "same-store sales" or "comp sales," and it's a principal measures of success.

Source: Retailsails.com.

As you can see in the chart above, Family Dollar has performed well in terms of growth on both of these fronts. Since 2007, its top-line sales have grown an impressive 25.1%, going from $6.8 billion in 2007 to $8.5 billion in 2011. This equates to an annual average growth rate of 6%. Much of this growth, moreover, has occurred organically, as its average same-store sales increase for the five years was 3.3%.

2. Margin expansion
The second variable to consider when assessing a retail stock is margin. As you probably know by now, there are three types of margin. The first is gross margin, which represents the percentage of revenue remaining after the cost of goods sold is deducted. The second type is operating margin, which represents the smaller percentage of revenue remaining after operating expenses such as marketing and administrative salaries are further deducted. And finally, the net or profit margin is the percentage of revenue that remains after all expenses, both cash and non-cash, such as depreciation, are subtracted from sales or revenue.

Although it's tempting to compare one retailer's margins to another's, doing so can be misleading if you're not careful to account for other factors. On the face of it, for instance, the struggling bookseller Barnes & Noble's 24.93% gross margin looks better than the expanding giant Costco's at 12.47%. Yet few would suggest that the former is a better investment than the latter. While this is obvious as you proceed down their respective income statements -- as Barnes & Noble loses money year-over-year whereas Costco makes money -- it's inherently a function of their business models. Namely, Costco is a wholesale discount retailer whereas Barnes & Noble is not. To avoid making this mistake, in turn, you need to consider a specific company's margins over time -- look for dynamic growth, otherwise known as margin expansion, and not just a static value.

Source: Retailsails.com.

Family Dollar performs similarly well in terms of margin expansion. As you can see in the chart above, the discount retailer has increased all three of its margin figures over the last five years. Its gross margin went from 24% in 2007 to 35.5% last year. And its operating and profit margins increased by 1.8 and 0.9 percentage points, respectively. All of which bodes well for shareholders.

3. Valuation
The third variable to consider when assessing a retail stock is value. And the most accessible metric to gauge value is the price to earnings ratio, or P/E ratio, which effectively tells you how much you have to pay for each dollar of a company's earnings. Because Wal-Mart's P/E ratio is 12.99, for instance, new investors are effectively paying $12.99 for the right to each dollar of the retail giant's earnings. A good benchmark in this regard is an estimate of the broader market's P/E ratio, which currently stands at 15.87. Speaking very generally, then, anything above that would be considered relatively expensive and anything below that relatively cheap.

Another way to think about value is to invert the P/E ratio. This gives you the earnings yield, which facilitates a rough comparison to both bond yields and inflation. The risk-free rate of return right now, as measured by the yield on the 10-year Treasury bond, is 1.91%. And the current rate of inflation is 2.93%. As a result, in the absence of future earnings growth, a stock with an earnings yield below either of these benchmarks will likely underperform the market, all else equal. To return to our Wal-Mart comparison, its earnings yield is 7.8%, well above both of these valuation benchmarks.

Source: Yahoo! Finance, Wall Street Journal.

As a likely consequence of its aforementioned success, shares in Family Dollar are trading above the broader market in terms of valuation. Indeed, while it takes $12.87 to buy $1 of the S&P 500's earnings, it takes $16.74 to buy $1 of Family Dollar's earnings. To justify this, the discount retailer will have to grow its earnings at roughly one-and-a-half times the rate of the broader market over the foreseeable future -- a tough task to be certain.

Foolish bottom line
At the end of the day, it's easy to understand why Family Dollar's shares have performed so admirably over the last few years, as both its sales and margins have expanded impressively. This past success, however, cuts both ways, as its shares now trade in anticipation of like growth in the future. While the discount retailer may be able to meet these expectations, there's no reason to gamble when investors could just as soon pick up the stock identified in our recently released free report "The Motley Fool's Top Stock for 2012." To access your copy of this report before the market catches on and sends this stock soaring to new heights, click here now -- it's free.