![]() ![]() Note: Where Stata saves the results depends on the type of command executed. ![]() Scalar list /* displays c_mpg and se_mpg */Īlternatively, you may define c_mpg and se_mpg as local macros instead of scalars:ĭisplay "c_mpg= " c_mpg' " se_mpg= "se_mpg' I saw some papers regarding the model but none of them had coefficients and std errors that were nearly zero. * defines scalar c_mpg equal to element (1,1) of vector b and defines scalar se_mpg equal to the square root of element (1,1) of matrix V */ The coefficients estimated for logistic regression are in log odds, and I understand it is common - at least when interpreting the output - to convert the log odds to odds so theyre more easily. The coefficients and standard errors of the leads are too small (near zero) that I think I must have done something wrong or misunderstood the relative time model (leads and lags model). For example, you can access the coefficient-covariance matrix of a model 'mdl' generated as output of the command 'fitlm' by the command 'mdl.Coefficient. * defines matrix b equal to the row vector of estimated coefficients, e(b) and matrix V equal to the variance-covariance matrix, e(V). Alternatively, models fitted using the Statistics Toolbox methods will have their coefficient-covariance matrices calculated and stored automatically as a model property. Reg price mpg /* estimates the equation price = b0 + b1*mpg + e to display all saved results after -regress-, type "ereturn list" */ Sysuse auto /* opens example data auto.dta */ In this post, we will use estimation results saved in e() after -regress- to generate a scalar (or a local macro) for coefficients and standard errors. We have shown examples of using saved results in Writing Greek letters and other symbols in graphs and Ways to count the number of unique values in a variable where we used results stored in r(). Besides displaying output in the results window, Stata stores results that you can use as inputs to subsequent commands. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |