We study market-to-book ratios of stocks in the context of stochastic portfolio theory. Functionally generated portfolios that depend on auxiliary economic variables other than relative capitalisations ("sizes") are developed in two ways, together with their relative returns with respect to the market. This enables us to identify the value factor (i.e., market-to-book ratio) in returns of such generated portfolios when the auxiliary variables are stocks' book values. Examples of portfolios, as well as their empirical results, are given, with the evidence that in addition to size, the value factor does affect the performance of the portfolio.