Fixed bug where N was not specified for the marginal model