boolprep               package:boolean               R Documentation

_G_e_n_e_r_a_t_e _F_u_n_c_t_i_o_n_a_l _F_o_r_m _f_o_r _B_o_o_l_e_a_n _L_o_g_i_t _o_r _P_r_o_b_i_t

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

     Takes as arguments the logical form of a Boolean model, the
     dependent variable, and the vectors of independent variables, and
     produces a functional form suitable for inclusion in a 'boolean'
     logit or probit command.

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

     boolprep(form, depvar, a, b = "", c = "", d = "", e = "", f = "",
     g = "", h = "", i = "", j = "", k = "", l = "", m = "", n = "",
     o = "", p = "", q = "", r = "", s = "", t = "", u = "", v = "",
     w = "", x = "", y = "", z = "", constant = TRUE)

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

    form: Form of Boolean model, e.g., 'a&b',  'a&(b|c)', etc. 

  depvar: Dependent variable. 

a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z: Vectors of
          independent variables corresponding to 'a', 'b', etc., in
          'form'. 

constant: Indicates whether constants should be placed in each vector
          of independent variables (note that the syntax requires that
          constant terms be explicitly included). 

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

     Because the structure of a Boolean logit or probit model can be
     arbitrarily complex, the layering of parentheses soon becomes
     tedious and unnecessarily difficult.  To make life easier, the
     'boolprep' command automates the task of creating the appropriate
     argument.

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

     A text string of the form 'y ~ f(x1...xn)'.

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

     Bear F. Braumoeller, Harvard University, bfbraum@fas.harvard.edu 
      Jacob Kline, Harvard University, jkline@fas.harvard.edu

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

     Braumoeller, Bear F. (2003) "Causal Complexity and the Study of
     Politics." _Political Analysis_ 11(3): 209-233.

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

     'boolean', 'boolprof',  and 'boolfirst'.

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

     boolprep("a&b", "y", "x1+x2", "x3+x4+x5")

     boolprep("a|(b&c)", "y", "x1+x2+x3", "x4+x5", "x6")

     boolprep("(a|b|c)&(d|e)&f", "y", "x1+x2", "x3+x4+x5", "x6", "x7+x8", "x9+x10+x11", "x12+x13")

