scriptshaa.blogg.se

Stata 12 manual update
Stata 12 manual update









stata 12 manual update

Now we can go ahead and graph the probabilities using the marginsplot command. There are two predicted probabilities for each value of In total, there are 22 values in the above table. The vsquish option just reduces the number of blank lines in the output.

stata 12 manual update

The syntax 20(5)70 means estimate predicted values for y when s equals 20, 25, 30 … 70. S from 20 to 70 for both f equal zero and f equal one. We will use the margins command to get the predicted probabilities for 11 values of We can also graph the results for female by prog just by using the x()įor our second example, we will graph the results of a categorical by continuous interaction from The noci option tells Stata to suppress the confidence intervals. The marginsplot is used after margins to plot the adjusted cell means. margins prog#female, asbalancedĮxpression : Linear prediction, predict()

stata 12 manual update

These adjusted cells means are called least squares means (lsmeans) in SAS or estimated marginal Next, we run the margins command to get the six adjust cell means from the 3×2 We will run the model usingĪnova but we would get the same results if we ran it using regression. The first example is a 3×2 factorial analysis of covariance. These commands also work in later version of Stata. Marginsplot command which make the graphing process very easy. Graphing results from the margins command can help in the interpretation of your model.











Stata 12 manual update