Dear all,
I need to devide one scalar/local through another and input the result into a matrix.
In the following, you find a simplified version of the syntax, which i use:
mata: st_numscalar("sum", z)
count
local a = r(N)
scalar define b = `sum'/`a' // (1) here scalar/local one ist divided through another
matrix define B = (.,.\.,.)
matrix B[1,1] = `b' // (2) here the result is entered into a matrix
Unfortuantely, neither step (1) nor (2) works. Can somebody help me to definie a version of the syntax, which works?
Related Posts with Divide skalar/locals and input result into matrix
generating new variable that incorporates population weightsHi, I have panel data with country-year unit of analysis for 100 countries and 100 years. I have thr…
Integrated Calibration Index (ICI)Dear colleagues, I there a way to calculate the "Integrated Calibration Index (ICI)" in STATA after…
time-dummy increases R-squaredHi, I am currently working with a pseudo-panel and to counter autocorrelation i am using a year-dum…
error in copying table from stata to excelArray ----------------------- copy starting from the next line ----------------------- Code: * Exam…
How to compute Wald estimator for IV like thisDear all, I would like to compute Wald estimator to examine the plausibility of instrumental variab…
Subscribe to:
Post Comments (Atom)
0 Response to Divide skalar/locals and input result into matrix
Post a Comment