how to display p values more than 3 decimals

50 views
Skip to first unread message

Zuo Zhang

unread,
Apr 25, 2019, 1:23:33 PM4/25/19
to lavaan
Hi all, 

I used the Growth curve model in lavaan and estimated defied parameters - part of the results as below. 

Is there a way to get the exact P value, more than 3 decimals?  For now the P value is displayed as 0.000.


Defined Parameters:
                   Estimate  Std.Err  z-value  P(>|z|)
slop_a         0.482        0.088    5.480        0.000

Many thanks in advance,
Zuo

PD

unread,
Apr 25, 2019, 1:39:18 PM4/25/19
to lavaan
You can use parameterestimates(mymodel)$pvalue if you want. Otherwise save parameterestimates to an object and extract what you need with desired precision.

Terrence Jorgensen

unread,
Apr 26, 2019, 3:52:57 AM4/26/19
to lavaan
Is there a way to get the exact P value, more than 3 decimals?  For now the P value is displayed as 0.000.

That's because the default argument is nd=3.

summary(fit, nd = 6)
class?lavaan # see other arguments

Terrence D. Jorgensen
Assistant Professor, Methods and Statistics
Research Institute for Child Development and Education, the University of Amsterdam

Reply all
Reply to author
Forward
0 new messages