runehaubo / lmerTestR

Repository for the R-package lmerTest
48 stars 9 forks source link

Number of digits from the summary function #36

Closed hknih closed 3 years ago

hknih commented 4 years ago

I am relatively new with R and using the lmerTest package for a similar analysis that is presented in the package instructions:

fm <- lmer(Informed.liking ~ Gender + Information + (1 | Consumer), data = data) summary(fm)

However, the summary function prints out t and p values with 2 digits only. How can the number of digits be adjusted?

Thank you!

runehaubo commented 4 years ago

This is not particular to lmerTest, but

print(summary(fm), digits=)

gives you some control.

Alternatively,

coef(summary(fm))

if you need to compute on the estimates.

Cheers Rune

On Wed, 15 Apr 2020 at 16:04, hknih notifications@github.com wrote:

I am relatively new with R and using the lmerTest package for a similar analysis that is presented in the package instructions:

fm <- lmer(Informed.liking ~ Gender + Information + (1 | Consumer), data = data) summary(fm)

However, the summary function prints out t and p values with 2 digits only. How can the number of digits be adjusted?

Thank you!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/runehaubo/lmerTestR/issues/36, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHZZLK53JRAYDTOU35RUJLRMW5HNANCNFSM4MITI2BQ .

hknih commented 4 years ago

Thank you so much for the prompt response! print(summary(fm), digits = 3) did not change the number of digits with t and p values even though this is what I also originally assumed would have worked here, but with coef(summary(fm)) I get larger number of digits so this solved my problem, thank you!