I'm trying to develop a program for an estimation method. I have a dependent variable, a list of independent variables, some weighing variables, and a list of moments. In this situation, I'm trying to develop syntax and a list of tempvar. My program looks like (although I'm not quite sure, if it is the right format):
program define something
syntax depvar indepvar (wtvar) moments(values) // (wtvar) = list of weighing variables and moments(value) = list of values i.e., values of moments //
My questions:
(1) Is it the right form to write syntax for this problem?
(2) How can I generate tempvar (W) in which each variable is the deviated form of each variable in (wtvar) and the corresponding argument in moments(values). For example, W_i = wtvar_i - moments[1,i]?
Thank you
end
program define something
syntax depvar indepvar (wtvar) moments(values) // (wtvar) = list of weighing variables and moments(value) = list of values i.e., values of moments //
My questions:
(1) Is it the right form to write syntax for this problem?
(2) How can I generate tempvar (W) in which each variable is the deviated form of each variable in (wtvar) and the corresponding argument in moments(values). For example, W_i = wtvar_i - moments[1,i]?
Thank you
end
Comment