R/coefmat.R

Defines functions coefmat

Documented in coefmat

coefmat<-function(lst,regressors) {
        coefm<-matrix(NA,length(lst),length(regressors))
        colnames(coefm)<-regressors
        for (i in 1:length(lst)) {
		logind<-names(lst[[i]]$coef) %in% regressors
                coefm[i,names(lst[[i]]$coef)[logind]]<-lst[[i]]$coef[logind]
        }
        colnames(coefm)<-paste('coef',regressors,sep='.')
        return(coefm)
}

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.