# NOT RUN {
# Return the generalized complete Bell Polynomial for n=1, m=1 and g1=g,
# that is (y^2)g[1]^2 + (y)g[2]
#
GCBellPol( c(2),1 )
# Return the generalized complete Bell Polynomial for n=1, m=2 and g1=g,
# corresponding to the cumulant polinomial indexed by (2,1), that is
# 2(y^2)g[1,0]g[1,1] + (y^3)g[0,1]g[1,0]^2 + (y)g[2,1] + (y^2)g[0,1]g[2,0]
#
GCBellPol( c(2,1),1 )
# Return the generalized complete Bell Polynomial for n=2, m=2 and g1=g2=g,
# corresponding to the cumulant polinomial in y1+y2 indexed by (1,1), that is
# (y1)g[1,1] + (y1^2)g[0,1]g[1,0] + (y2)g[1,1] + (y2^2)g[0,1]g[1,0] + 2(y1)(y2)g[0,1]g[1,0]
#
GCBellPol( c(1,1),2, TRUE )
# Return the generalized complete Bell Polynomial for n=2, m=2 and g1 different from g2,
# that is (y1)g1[1,1] + (y1^2)g1[1,0]g1[0,1] + (y2)g2[1,1] + (y2^2)g2[1,0]g2[0,1] +
# (y1)(y2)g1[1,0]g2[0,1] + (y1)(y2)g1[0,1]g2[1,0]
#
GCBellPol( c(1,1),2 )
# }
Run the code above in your browser using DataLab