nsims                   package:rv                   R Documentation

_N_u_m_b_e_r _o_f _s_i_m_u_l_a_t_i_o_n_s _s_t_o_r_e_d _i_n _e_a_c_h _c_o_m_p_o_n_e_n_t _o_f _a_n _r_v _o_b_j_e_c_t

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

     'nsims' returns the number of simulations  stored in each
     component of its argument.

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

       nsims(x)

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

       x: an rv object

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

     If the argument is a number, 'nsims' returns 1.

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

     A vector of integers.

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

     Jouni Kerman kerman@stat.columbia.edu <URL:
     http://www.stat.columbia.edu/~kerman>

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

     Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing
     Posterior Simulations Using Random Variable Objects. Technical
     report, Columbia University, New York.

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

       #
       nsims(1.23)
       x <- rvnorm(1)
       nsims(x)
       nsims(x)==nrow(sims(x)) # Should be TRUE
       nsims(x)==rvnsims()     # Should be TRUE

