The promise of consumer data along with advances in information technology has spurred innovation not only in the way firms conduct their business operations but also in the manner in which data is collected. A prominent institutional structure that has recently emerged is a data cooperative — an organization that collects data from its members, and processes and monetizes the pooled data. A characteristic of consumer data is the externality it generates: data shared by an individual reveals information about other similar individuals; thus, the marginal value of pooled data increases in both the quantity and quality of the data. A key challenge faced by a data cooperative is the design of a revenue-allocation scheme for sharing revenue with its members. An effective scheme generates a beneficial cycle: It incentivizes members to share high-quality data, which in turn results in high-quality pooled data — this increases the attractiveness of the data for buyers and hence the cooperative's revenue, ultimately resulting in improved compensation for the members. While the cooperative naturally wishes to maximize its total surplus, two other important desirable properties of an allocation scheme are individual rationality and coalitional stability. We first examine a natural proportional allocation scheme — which pays members based on their individual contribution — and show that it simultaneously achieves individual rationality, the first-best outcome, and coalitional stability, when members' privacy costs are homogeneous. Under heterogeneity in privacy costs, we analyze a novel hybrid allocation scheme and show that it achieves both individual rationality and the first-best outcome, but may not satisfy coalitional stability. Finally, our RobinHood allocation scheme — which uses a fraction of the revenue to ensure coalitional stability and allocates the remaining based on the hybrid scheme — achieves all the desirable properties.