prob                  package:deal                  R Documentation

_L_o_c_a_l _p_r_o_b_a_b_i_l_i_t_y _d_i_s_t_r_i_b_u_t_i_o_n_s

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

     Methods for accessing or changing the local probability
     distributions and for accessing the local prior and posterior
     distributions

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

     prob(x,df,...)

     ## S3 method for class 'node':
     prob (x,df,nw,...)
     ## S3 method for class 'network':
     prob (x,df,...)

     localprob(nw)
     value <- localprob(nw,name)

     localprior(node)
     localposterior(node)

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

       x: an object of class 'node' or 'network'.

      df: a data frame, where the columns define the variables. A
          continuous variable should have type 'numeric' and discrete
          varibles should have type 'factor'.

      nw: an object of class 'network'.

    node: an object of class 'node'.

    name: a string, which gives the node name.

     ...: additional arguments for specific methods.

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

     The 'prob' methods add local probability distributions to each
     node. If the node is continuous, this is a numeric vector with 
     the conditional variance and the conditional regression
     coefficients arising from a regression on the continuous parents,
     using data. If the node has discrete parents, 'prob' is a matrix
     with a row for each configuration of the discrete parents. If the
     node is discrete, 'prob' is a multiway array which gives the
     conditional probability distribution for each configuration of the
     discrete parents. The generated 'prob' can be replaced to match
     the prior information available.

     'localprob' returns the probability distribution for each node in
     the network.

     In a learned network, the local prior and posterior can be
     accessed for each node using 'localprior' and 'localposterior'.

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

     Susanne Gammelgaard Bttcher alma@math.aau.dk, 
      Claus Dethlefsen cld@rn.dk.

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

     Further information about *deal* can be found at:
      <URL: http://www.math.aau.dk/~dethlef/novo/deal>.

