I am modelling a huge database and I have to create a new variable that contains the value of the diagonal of the current database.
Basically on the x-axis and y-axis I have the same variables and I want to select the interaction term - you can think about it as the variance in the variance-covariance matrix. I have tried with MATA and the function diagonal() but I get errors.
Any help with the code? I would really appreciate it!
Related Posts with Diagonal
How to compare adjusted means of 2 groupsHi, I am new to Stata and I need to know how can I go about comparing the adjusted means between 2 …
Adapting Multinomial Logit model (MLOGIT) to land use shares as the dependent variableI have a panel data set for 200 states from 1980 to 2011. My data is contains information on area un…
Combining observations within the same datasetHello all, So I have an individual level dataset, in which the household id (hhid) is not unique, h…
Fine and Gray calculate risksDear all, Could anyone explain how I can calculate 10-year risks of each individual in my dataset a…
Problem of model specification*The model to estimate is : Surplus primaire ti= a1 surplus primaire ti-1+a2 debti-1+…..+eit. When i …
Subscribe to:
Post Comments (Atom)
0 Response to Diagonal
Post a Comment