R/coef.mdf.R

Defines functions coef.mdf

Documented in coef.mdf

coef.mdf <-  function(object, type, ...){
  if (missing(type)) type <-  "persons"
  if (type=="persons"){
    return(object$MUDFOLD_INFO$second_step$estimates$thetas)
  }
  if (type=="items"){
    return(object$MUDFOLD_INFO$second_step$estimates$betas)
  }
  if (type=="all"){
    return(list(persons= object$MUDFOLD_INFO$second_step$estimates$thetas,
                items = object$MUDFOLD_INFO$second_step$estimates$betas))
  }
  
}

Try the mudfold package in your browser

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

mudfold documentation built on Nov. 24, 2022, 5:09 p.m.