Dear Listers,
I have a problem in transposing a variable in mata.
My code is
p1 = moptimize_util_xb(M,b,1)
p2 = moptimize_util_xb(M,b,2)
rho = moptimize_util_xb(M,b,3)
y1 = moptimize_util_depvar(M,1)
y2 = moptimize_util_depvar(M,2)
y3 = moptimize_util_depvar(M,3)
K = (y1: - p1):+ rho:*(y2: - p2)
...
when I run maximum likelihood with K':*K above it returns conformability. Anyone knows how to make a transposed variable with K'?
Many thanks in advance!
Kind regards,
Kim
I have a problem in transposing a variable in mata.
My code is
p1 = moptimize_util_xb(M,b,1)
p2 = moptimize_util_xb(M,b,2)
rho = moptimize_util_xb(M,b,3)
y1 = moptimize_util_depvar(M,1)
y2 = moptimize_util_depvar(M,2)
y3 = moptimize_util_depvar(M,3)
K = (y1: - p1):+ rho:*(y2: - p2)
...
when I run maximum likelihood with K':*K above it returns conformability. Anyone knows how to make a transposed variable with K'?
Many thanks in advance!
Kind regards,
Kim
Comment