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
xtlogit: fixed or random effects?Dear Stata users, I have an unbalanced panel data-set (missing about 3.5% of observations, with i=1…
Error message after xtwestDear Statalisters, I'm a longtime occasional lurker and a firsttime poster. I'm using 15.1. I have a…
Help with multilevel cox regressionHello everyone, I'm trying to evaluate the association between outcome CVD and exposure saturated f…
-nestreg- for panel regression?Dear Statelist I am working with a panel dataset consisting of more than 100 potential predictors. …
Marginsplot and Predicted Probabilty on Y-axisHello, I am trying to fit a logistic model that contains an interaction between a continuous and ca…
Subscribe to:
Post Comments (Atom)
0 Response to Looping for Variance beta
Post a Comment