R/pvalmat.R

Defines functions pvalmat

Documented in pvalmat

pvalmat<-function(lst,regressors) {
        pvalm<-matrix(NA,length(lst),length(regressors))
        colnames(pvalm)<-regressors
        for (i in 1:length(lst)) {
                coef<-summary(lst[[i]])$coef
		logind<-rownames(coef) %in% regressors
                pvalm[i,rownames(coef)[logind]]<-coef[logind,4]
        }
        colnames(pvalm)<-paste('pvalue',regressors,sep='.')
        return(pvalm)
}

Try the PSEA package in your browser

Any scripts or data that you put into this service are public.

PSEA documentation built on Nov. 8, 2020, 6:54 p.m.