How to draw the cumulative distribution function of samples in Stata - Stata introductory tutorial

Time: 2021-02-17Source: Huajun Software TutorialAuthor: Aotuman

How to use Stata to draw the cumulative distribution function of samples? Below, the author will bring you the operation method of Stata to draw the cumulative distribution function of samples. Friends in need can take a look. I hope it will be helpful to everyone.

First, open Stata (it is recommended that you try to use a higher version of Stata).

How does Stata plot the cumulative distribution function of a sample?

Enter: ssc install cdfplot in the command box to install this external command.

How does Stata plot the cumulative distribution function of a sample?

Import the sample data that comes with Stata. Type the command: sysuse auto, clear to open the 1978 car transaction data.

How does Stata plot the cumulative distribution function of a sample?

Specify a separate sample cumulative distribution function for the vehicle type values, grouped by vehicle length. The command is: cdfplot length [fw=rep78], by(foreign) norm saving(mygraph,replace)

How does Stata plot the cumulative distribution function of a sample?

As shown in the figure, the sample cumulative distribution function is automatically generated after execution, and the statistical results are displayed intuitively.

How does Stata plot the cumulative distribution function of a sample?

The above is the operation method of drawing the sample cumulative distribution function of Stata brought by the author. Friends who don't know how to do it should hurry up and learn it.

Related articles更多>>

Popular recommendations