Hi I am doing linear regression in R and want to create marginal(adjusted) means for my subgroups.
The linear regression includes age, gender, education, marital status, employ, ethnicity and health condition. I wanted to get means and SDs for each ethnicity X health condition group. However, when I put emmeans to get the marginal means, it shows this error message:
Error: The rows of your requested reference grid would be 19800, which exceeds
the limit of 10000 (not including any multivariate responses).
Your options are:
1. Specify some (or more) nuisance factors using the 'nuisance' argument
(see ?ref_grid). These must be factors that do not interact with others.
2. Add the argument 'rg.limit = <new limit>' to the call. Be careful,
because this could cause excessive memory use and performance issues.
Or, change the default via 'emm_options(rg.limit = <new limit>)'.
Can anyone help, please? Thanks!