central2raw             package:moments             R Documentation

_C_e_n_t_r_a_l _t_o _r_a_w _m_o_m_e_n_t_s

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

     This function transforms a vector, matrix or data frame of central
     moments to a vector, matrix or data frame of raw moments.

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

     central2raw(mu.central,eta)

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

mu.central: A numeric vector, matrix or data frame of central moments. 
          For a vector, mu.central[0] is the order 0 central moment,
          mu.central[1] is the order 1 central moment and so forth. For
          a matrix or data frame, row vector mu.central[0,] contains
          the order 0 central moments, row vector mu.central[1,]
          contains the order 1 central moments and so forth. 

     eta: A numeric vector of sample mean or expected values 

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

     A vector matrix or data frame of raw moments.  For matrices and
     data frame, column vectors correspond to different random
     variables.

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

     Frederick Novomestky fnovomes@poly.edu

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

     Papoulis, A., Pillai, S. U. (2002) Probability, Random Variables
     and Stochastic Processes, Fourth Edition, McGraw-Hill, New York,
     146-147.

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

     'moment', 'all.moments', 'raw2central'

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

     set.seed(1234)
     x <- rnorm(10000)
     mu.raw.x <- all.moments( x, order.max=4 )
     eta.x <- mu.raw.x[2]
     mu.central.x <- all.moments( x, central=TRUE, order.max=4 )
     central2raw( mu.central.x, eta.x )
     mu.raw.x
     M <- matrix( x, nrow=1000, ncol=10 )
     mu.raw.M <- all.moments( M, order.max=4 )
     eta.M <- mu.raw.M[2,]
     mu.central.M <- all.moments( M, central=TRUE, order.max=4 )
     central2raw( mu.central.M, eta.M )
     mu.raw.M
     D <- data.frame( M )
     mu.raw.D <- all.moments( D, order.max=4 )
     eta.D <- mu.raw.D[2,]
     mu.central.D <- all.moments( D, central=TRUE, order.max=4 )
     central2raw( mu.central.D, eta.D )
     mu.raw.D

