graphmod              package:logilasso              R Documentation

_F_u_n_c_t_i_o_n _t_o _p_l_o_t _a _g_r_a_p_h_i_c_a_l _m_o_d_e_l.

_D_e_s_c_r_i_p_t_i_o_n:

     Function to plot a graphical model for objects of class
     'predlogilasso', 'cvlogilasso' and 'levellogilasso'. For details
     about graphical models, see reference.

_U_s_a_g_e:

     graphmod(obj, grenze = 0, nnames = NULL, ...)

     ## S3 method for class 'predlogilasso':
     graphmod(obj, grenze = 0, nnames = NULL,... )

     ## S3 method for class 'cvlogilasso':
     graphmod(obj, grenze=0, nnames = NULL, lambda = NULL, ... )
     ## S3 method for class 'levellogilasso':
     graphmod(obj, grenze=0, nnames = NULL, lambda = NULL, to.which.int = NULL, ... )

_A_r_g_u_m_e_n_t_s:

     obj: Object of class 'predlogilasso', 'cvlogilasso' or
          'levellogilasso'.

  grenze: Components of beta which are smaller than 'grenze' times the
          biggest component of beta are truncated to zero.

  nnames: Character vector. Names of the nodes in the graphical model.

  lambda: For object of class 'cvlogilasso' or 'levellogilasso': Should
          not be specified except if the graphical model for a specific
          value of 'lambda' should be drawn. Otherwise this value is
          assessed by cross-validation.

to.which.int: For objects of class 'levellogilasso': Should not be
          specified except if the graphical model for a specific
          interaction number is desired. Otherwise assessed by
          cross-validation.

     ...: Additional arguments to be passed to the plotting function.

_R_e_f_e_r_e_n_c_e_s:

     Steffen L. Lauritzen, Graphical Models, Oxford University Press,
     1996

_E_x_a_m_p_l_e_s:

     library(gRbase)
     data(reinis)

     fit <- logilasso(reinis,lambdainit=1)
     pred <- predict(fit,lambda=0.5)
     # Graphical model of an object of class predlogilasso
     graphmod(pred,nnames=as.character(c(1:6)))

     fit <- logilasso(reinis,lambdainit=1,cvfold=3)
     # Graphical model of an object of class cvlogilasso
     graphmod(fit,nnames=c("one","two","three","four","five","six"))

