R/summary.LMlatentcont.R

Defines functions summary.LMlatentcont

Documented in summary.LMlatentcont

summary.LMlatentcont<-function(object,...){

  cat("Call:\n")
  print(object$call)
  cat("\nCoefficients:\n")
  if(object$k>1){
    cat("\n Be - Parameters affecting the logit for the initial probabilities:\n")
    print(round(object$Be,4))
    if(is.null(object$seBe)==FALSE){
      cat("\n Standard errors for Be:\n")
      print(round(object$seBe,4))
    }
    if(object$param=="multilogit"){
      cat("\n Ga - Parameters affecting the logit for the transition probabilities:\n")
      print(round(object$Ga,4))	
      if(is.null(object$seGa)==FALSE){
        cat("\n Standard errors for Ga:\n")
        print(round(object$seGa,4))		
      }	
    }else if(object$param=="difflogit"){
      cat("\n Ga0 - Intercept affecting the logit for the transition probabilities:\n")
      print(round(object$Ga[[1]],4))
      cat("\n Ga1 - Regression parameters affecting the logit for the transition probabilities:\n")
      print(round(object$Ga[[2]],4))		
      if(is.null(object$seGa)==FALSE){
        cat("\n Standard errors for Ga0:\n")
        print(round(object$seGa[[1]],4))
        cat("\n Standard errors for Ga1:\n")
        print(round(object$seGa[[2]],4))		
      }
    }
  }
  cat("\n Mu - Conditional response means:\n")
  print(round(object$Mu,4))
  if(is.null(object$seMu)==FALSE){
    cat("\n Standard errors for the conditional response means:\n")
    print(round(object$seMu,4))
  }
  
  cat("\n Si - Variance-covariance matrix:\n")
  print(round(object$Si,4))
  if(is.null(object$seSi)==FALSE){
    cat("\n Standard errors for the variance-covariance matrix:\n")
    print(round(object$seSi,4))
  }

}

Try the LMest package in your browser

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

LMest documentation built on Aug. 27, 2023, 5:06 p.m.