View source: R/generateSignificance.r
generateSignificance | R Documentation |
Generate t-statistics, p-value and significance from estimates and its sd. Estimates and its SD is the first and second column respectively
generateSignificance(x, row_names)
x |
A matrix or data.frame |
row_names |
names of row |
a data.frame
TszKin Julian Chan ctszkin@gmail.com
n<-1000 x_data<-cbind(rnorm(n,mean=0),rnorm(n,mean=1)) x_estimates<-cbind(apply(x_data,2,mean),apply(x_data,2,sd)/sqrt(n)) generateSignificance(x_estimates) generateSignificance(x_estimates,row_names=c("mean0","mean1") )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.