![]() ![]() The above graph shows that the fitted values fully take into account the scattered values of GDP. Figure 2: Two-way graph of actual and fitted values of GDP It shows green dots as actual GDP values, the shaded region as a confidence interval, and straight-line as fitted values. ‘lfitci’ stands for a line of best fit with a confidence intervalĪfter running the command, the below graph will appear.‘two-way’ is for two-way graphs in STATA.For that use the command: STATA Command: twoway lfitci gdp chat, stdp || scatter gdp chat It shows standard deviations as scattered around the fitted line. The command for standard errors is: STATA Command: predict stdpįurthermore, representing the fitted and actual values together in two-way graph. ![]() Now a separate variable as ‘chat’ will be created in the data editor window. Furthermore, ‘chat’ is the term given to the fitted variable of GDP. In the present case, this is a fixed-effect model. The commands ‘predict’ is used for generating values based on the selected model. To generate the prediction use the command: STATA Command: predict chat, y
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |