I need help with looping in mata. I have to write a code for Beta coefficients for OLS in mata through loop. I am not sure how to call for the variables and create the code. Here is what I have so far.
foreach j of local X { if { //for X'X matrix XX = [mata:XX = cross(X,1 , X,1) XX] } else {mata:Xy = cross(X,1 , y,0) Xy }
Related Posts with Looping for Variance beta
General structure of data.How can I describe the structure of the dataset using summary statistics, graphical analysis and var…
Question about multivariate regression analysisDear colleagues, Good morning. I would like to ask about multivariate regression analysis. I researc…
RIF functionHello Everyone, I have been reading some literature on Recentered Influence function and Influence …
quantile regressionHello everyone, I am doing an analysis on "Socio economic inequality on childhood health outcomes".…
Graph the marginal effect of x1 on y (y-axis) against x2 (x-axis)?Dear All, Suppose I run the following regression: Code: // ssc install interflex, interactplot sysu…
Subscribe to:
Post Comments (Atom)
0 Response to Looping for Variance beta
Post a Comment