If year=1,2,3,4; and prov=1,2,3,4,5,6,7. So how to calculate i*j, thanks a lot!
I run this,but it is wrong.
forvalues i=1/4 {
forvalues j=1/7 {
gen yearprov `i' `j'=year`i'*prov`j'
}
}
Related Posts with How to generate i*j by forvalues?
How to obtain wald test value for each category after multinomial logistic regressionI have conducted a multinomial logistic regression using the code: mlogit housetype gender race inc…
xtile after mi impute chainedHi everyone! I need help! I have multiple imputed my data using -mi impute chained-. One of the imp…
Time series regression analysis with multiple desricptorsHi, I need to run a multivariate time series regression with multiple descriptors. Could someone pl…
Conditional logit (with a different number of alternatives for each case)?Dear all, I had posted this a while ago and not received a response. Am reposting in case someone h…
Negative probabilities in 95% CI when using margins after nbregHello everyone, I'm fitting a negative binomial regression model using nbreg in Stata 16.0 and then…
Subscribe to:
Post Comments (Atom)
0 Response to How to generate i*j by forvalues?
Post a Comment