p value - Manual t-test in R, Tail test -


i've been trying make manual t test of statistic calculated in r. i've seen people recommend use function dt had not worked. know because i'm comparing results of r results in stata (the last ones i'm sure i've got them correct). code i'm trying this

pvalue<-dt(3.141523, df=8) 

where 3.141523 calculated t statistic , df degrees of freedom. thank help!

i think want use pt() function instead of dt(). dt() density while pt() distribution.

> pt(3.141523, df = 8) [1] 0.9931132 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -