Skip to content
Prev 313662 / 398502 Next

format.pval () and printCoefmat ()

Dear Arun and David,

I am so grateful to you for all your help with the code.  Thanks and regards, Pradip


Arun - All this  is very helpful.  In general, I can follow the code. I only have the following questions:

 What changes in the code would be required to have 3 places after decimal for all numeric variables in the "res" data frame?

Thanks,

Pradip



####### below is the display of the data from Lines1, Lines2, and res
Lines1
1    mean_level1 mean_level2 rel_diff p_mean cohens_d  
2 1       18.744      11.911    0.574   0.00    0.175  
3 2       18.744      14.455    0.297   0.00    0.110  
4 3       18.744      13.540    0.384   0.00    0.133  
5 4       18.744       6.002    2.123   0.00    0.333  
6 5       18.744       5.834    2.213   0.00    0.349
Lines2
1    mean_level1 mean_level2 rel_diff p_mean cohens_d
2 1       18.744      11.911    0.574   0.00    0.175
3 2       18.744      14.455    0.297   0.00    0.110
4 3       18.744      13.540    0.384   0.00    0.133
5 4       18.744       6.002    2.123   0.00    0.333
6 5       18.744       5.834    2.213   0.00    0.349
contrast_level1 contrast_level2 mean_level1 mean_level2 rel_diff p_mean cohens_d
1              wh            2+hi        18.7       11.91    0.574      0    0.175
2              wh            2+rc        18.7       14.46    0.297      0    0.110
3              wh            aian        18.7       13.54    0.384      0    0.133
4              wh            asan        18.7        6.00    2.123      0    0.333
5              wh            blck        18.7        5.83    2.213      0    0.349
6              wh            csam        18.7        7.93    1.363      0    0.279