R/spm_PM.R

Defines functions spm_PM

spm_PM <-
function(a,b,c,h,n,m){

	a <- matrix(a,ncol=n,byrow=TRUE)
        diag(a) <- -1
	dim(b) <- c(n,n,m)
                         for (i in 1:m){
                              b[,,i] <- t(b[,,i])
                                        }
		PM=c(0,a,b,c,h%x%rep(1,n))
		PM
		                 }

Try the FIAR package in your browser

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

FIAR documentation built on June 5, 2018, 5:03 p.m.