MIMbase                 package:mimR                 R Documentation

_S_u_b_m_i_t _c_o_m_m_a_n_d_s _t_o _M_I_M _a_n_d _g_e_t _t_h_e _r_e_s_u_l_t _b_a_c_k _i_n _R

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

     mim.cmd is the core function for communicating with MIM from
     within R. MIM commands are given as text strings and the results
     from submitting these commands in MIM are returned (as a vector of
     strings). Several functions exist for processing these results in
     sensible ways. See below.

     Invoking mcm() gives a direct interface to MIM such that MIM
     commands can be entered directly. The output printed by MIM is
     printed the same way in the R console.

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

     mim.cmd(cmd, look.nice = TRUE, return.look.nice=FALSE, version='R')
     mcm()
     helpmim()

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

     cmd: A (vector of) strings of MIM commands

look.nice: When TRUE the result of the last MIM command is printed on
          the screen and returned as a list of strings, one string per
          line of output. When FALSE the result is returned as a vector
          of strings (thereby enabeling processing of the results in
          R).

return.look.nice: When TRUE the result of the last MIM command is
          returned as a list of strings, one string per line of output.

 version: If set to 'S' then the function also should work with Splus

_D_e_t_a_i_l_s:

     To exit the mcm() function, type quit, end, exit, q or e at the
     prompt. Note that this will not terminate the MIM program. The
     helpmim() function invokes the help pages of the MIM program.

_V_a_l_u_e:

     mim.cmd returns a vector or a string, whereas mcm returns NULL

_N_o_t_e:

     Before using mimR, make sure that the MIM program is runnning.

_A_u_t_h_o_r(_s):

     Sren Hjsgaard, sorenh@agrsci.dk

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

     David Edwards, An Introduction to Graphical Modelling, Second
     Edition, Springer Verlag, 2000

_S_e_e _A_l_s_o:

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

     mim.cmd("fact a2 b2 c2; statread abc")
     mim.cmd("25 2 17 8 14 9 6 8 !")
     mim.cmd("mod ab,ac,bc; fit")
     ##mcm()

