R/IM.R

"IM" <-
function(res,which=1, drop=TRUE, ...){
  if(class(res)=="opt.more.par"){
    IM<-res$best[[which]]$IM
  } else IM<-res$IM
  if(drop)IM<-drop(IM)
  return(IM)
}

"EM" <-
function(res,which=1, drop=TRUE,...){
    if(class(res)=="opt.more.par"){
      EM<-res$best[[which]]$EM
    } else EM<-res$EM
    if(drop)EM<-drop(EM)
    return(EM)
}

Try the blockmodelingTest package in your browser

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

blockmodelingTest documentation built on May 2, 2019, 5:57 p.m.