Skip to content

How to generate P value for each level in lmer package

3 messages · Parvez Qureshi, Ben Bolker, Vinicius Maia

#
Hi All,

This is regarding a query regarding lmer package where I am trying to generate price elasticities for different level in mixed data. Although I am getting coefficients using coef () function for each level specified in equation but wanted to generate P Value for each level along with coefficient.

Coud anyone please suggest how can we generate P value for each level.

Regards,
Parvez
#
This doesn't really give enough details for me (us) to understand 
what you want.

   car::Anova() will give you a p-value for each term.

   emmeans will give you expected marginal means and p-values for 
various combinations of levels

   multcomp::glht can be helpful too.

   If these don't answer your question, please reply with a bit more 
detail/a simple example.

   cheers
    Ben Bolker
On 2/2/22 11:17 AM, Parvez Qureshi wrote:

  
    
1 day later
#
Hi,

If I understand correctly, you can get the p-values using lmerTest. Load
the package before running the model and the p-values will appear in the
model summary.

Best regards,
Vin?cius Maia

Em qua., 2 de fev. de 2022 ?s 20:51, Ben Bolker <bbolker at gmail.com>
escreveu: