R/Gibbs5.R

Defines functions Gibbs5

Documented in Gibbs5

Gibbs5<-
function(noRow,noCol,iter,GrpSzs,YMu,L0,V0,L0A,V0A,MM,AAPi,ApriDiffExp,result1,result2,result3,result4)
     {
output=.C("Gibbs5",as.integer(noRow),as.double(noCol),as.integer(iter),as.double(GrpSzs),as.double(YMu),as.double(L0),as.double(V0),as.double(L0A),as.double(V0A),as.double(MM),as.double(AAPi),as.double(ApriDiffExp),as.double(result1),as.double(result2),as.double(result3),as.double(result4))
      Resultado1=matrix(output[[13]],noRow,iter)
      Resultado2=matrix(output[[14]],noRow,iter)
      Resultado3=matrix(output[[15]],noRow,iter)
      Resultado4=matrix(output[[16]],noRow,iter)
      
      Resultado=list(Resultado1,Resultado2,Resultado3,Resultado4)
      names(Resultado)=c("alfa.1","alfa.2","alfa.3","alfa.4")
      return(Resultado)
     }

Try the BAGS package in your browser

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

BAGS documentation built on Nov. 8, 2020, 11:11 p.m.