Skip to content

Forcing results from lm into datframe

1 message · beatlebg

#
Hi all, 

This subject treats exactly what I am looking for, thank you. Only I would
like to include the p-values (or t-values) in the dataframe, like this:

       .id             (Intercept)   p-value(intercept)             quartile    
p-value(intercept)
1 CBP0908020    20.92140           0.00                   3.38546887          
0.00
2 CBP0908021    29.31632           0.00                   0.01372604          
0.12
3 CBP0908022    39.10000           0.00                   3.30000000          
0.00 

I have at most a lot of id's so a nice way to summarize the results is
preferred. I tried a lot of thinks with apply, ldply, dlply, Lmlist, but I
don't get the results that I wanted. 

Thanks a lot, 

With best regards