How do you calculate the risk-free rate for portfolio analysis?

What is the method for determining the risk-free rate for use in financial models?