Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Pre-Post Line Graph

    Dear Statistician,
    I want to create a before-and-after line graph for my dataset. Is it feasible in STATA? If yes, please help me with the command. I have attached an example.
    No matches for the below command:
    help twoway pcapsym
    Attached Files

  • #2
    This can be seen as a follow-up to https://www.statalist.org/forums/for...tegories/page2

    A glance at that will show that Ankit has already been asked for a data example and been given the suggestion to check
    out twoway pcapsym.

    Comment


    • #3
      Sorry; you need

      Code:
      help twoway pccapsym
      but jusr rummaging around in the help would have solved that.

      Comment


      • #4
        Thank you, sir. However, the line diagram created from the dataset "sysuse nlswide1" includes four variables. What do ttl_e68 and ttl_e88 represent in this "nlswide" dataset? I only have two variables for my data set, pre and post, and this command "twoway pccapsym" needs 4 variables.

        Comment


        • #5
          Once again, I can't begin to guess exactly what you need without a data example. This kind of graph often needs the creation of an extra variable for the x axis if it doesn't exist.

          Several examples in that spirit can be found in https://journals.sagepub.com/doi/pdf...867X0900900408



          Comment

          Working...
          X