Announcement

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

  • ssc install sjlog not found

    I have the following code from book fiels " Aa introduction to stata". when I run the following code it gives an error "could not be opened" . I have also installed sjlatex but still could not run this code. Please guide how to solve this issue
    sjlog using logs/ch9.01, replace

  • #2
    sjlog is a Stata command. Did you try help sjlog?

    Comment


    • #3
      Hello Dirk Enzmann. When I tried -help sjlog- just now (with version 18.5), I got this result:

      Code:
      help for sjlog not found
      --------------------------------------------------------------------------------------------------------------------------------
      search for sjlog                                                                                           (manual:  [R] search)
      --------------------------------------------------------------------------------------------------------------------------------
      
      Search of official help files, FAQs, Examples, and Stata Journals
      
      Search of web resources from Stata and other users
      
      (contacting http://www.stata.com)
      
      st0620 from http://www.stata-journal.com/software/sj20-4
          SJ20-4 st0620. Analysis of regression-discontinuity ... / Analysis of
          regression-discontinuity designs / with multiple cutoffs or multiple
          scores / by Matias D. Cattaneo, Princeton University, / Princeton, NJ /
          Rocio Titiunik, Princeton University, / Princeton, NJ / Gonzalo
      
      sjlatex from http://www.stata-journal.com/production
          sjlatex:  LaTeX files for the Stata Journal / sjlatex contains the LaTeX
          document class and packages for the / Stata Journal. / The ancillary files
          should be installed using the sjlatex command / from within Stata. /
          Distribution-Date: 22sep2022
      
      (click here to return to the previous screen)
      
      (end of search)


      --
      Bruce Weaver
      Email: [email protected]
      Version: Stata/MP 18.5 (Windows)

      Comment


      • #4
        You are correct: On my computer which sjlog produces
        Code:
        /home/enzmann/ado/plus/s/sjlog.ado
        *! version 1.2.17  28jan2019
        (you have to ignore the part before "/ado"). Obvioulsy it is an .ado command but the help does not show the author.

        [This corrects my first reply: I wrongly stated that Stata 17 and Stata 18.0 know this command.]
        Last edited by Dirk Enzmann; 29 Aug 2024, 11:07.

        Comment


        • #5
          Originally posted by Dirk Enzmann View Post
          sjlog is a Stata command. Did you try help sjlog?
          Yes, I tried help, and it refers to install sjlatex from from(http://www.stata-journal.com/production). After installing, still "sjlog using logs/ch9.01a, replace" is not working. The book "An introduction to stata" is all time famous. However, their files are not executable nor there are updated files available.

          Comment


          • #6
            Originally posted by Bruce Weaver View Post
            Hello Dirk Enzmann. When I tried -help sjlog- just now (with version 18.5), I got this result:

            Code:
            help for sjlog not found
            --------------------------------------------------------------------------------------------------------------------------------
            search for sjlog (manual: [R] search)
            --------------------------------------------------------------------------------------------------------------------------------
            
            Search of official help files, FAQs, Examples, and Stata Journals
            
            Search of web resources from Stata and other users
            
            (contacting http://www.stata.com)
            
            st0620 from http://www.stata-journal.com/software/sj20-4
            SJ20-4 st0620. Analysis of regression-discontinuity ... / Analysis of
            regression-discontinuity designs / with multiple cutoffs or multiple
            scores / by Matias D. Cattaneo, Princeton University, / Princeton, NJ /
            Rocio Titiunik, Princeton University, / Princeton, NJ / Gonzalo
            
            sjlatex from http://www.stata-journal.com/production
            sjlatex: LaTeX files for the Stata Journal / sjlatex contains the LaTeX
            document class and packages for the / Stata Journal. / The ancillary files
            should be installed using the sjlatex command / from within Stata. /
            Distribution-Date: 22sep2022
            
            (click here to return to the previous screen)
            
            (end of search)

            Sir I have already done this but still could not run sjlog

            Comment


            • #7
              I am using state 17

              Comment


              • #8
                If you use
                Code:
                net describe sjlatex, from(http://www.stata-journal.com/production)
                you will see that sjlog.ado is part of the sjlatex package.

                Comment


                • #9
                  In #5 you write
                  Originally posted by kotak kumar View Post
                  ... "sjlog using logs/ch9.01a, replace" is not working. ..
                  Please show us the command you actually used plus the exact output of this command -- "not working" does not help to locate the problem.

                  Comment


                  • #10
                    Originally posted by Dirk Enzmann View Post
                    In #5 you write


                    Please show us the command you actually used plus the exact output of this command -- "not working" does not help to locate the problem.

                    Comment


                    • #11
                      Originally posted by Dirk Enzmann View Post
                      In #5 you write


                      Please show us the command you actually used plus the exact output of this command -- "not working" does not help to locate the problem.

                      Comment


                      • #12

                        I get this after executing the command
                        Attached Files

                        Comment


                        • #13
                          Do you have write access to "C:\Users\kotak\Documents\logs"? Does the folder "logs/" exist? Note that you can specify the full path instead only "logs/ch2.1" (including the drive, here "C:/"). Doing this you should (a) always enclose the full path whithin double quotes, (b) use forward slashes instead of backslashes throughout (even in Windows), and (c) specify the extension of the file, as well. For example
                          Code:
                          sjlog using "C:/Users/kotak/Documents/logs/ch2.1.smcl"
                          assuming that the folder "logs/" exists in "C:/Users/kotak/Documents/".

                          Comment

                          Working...
                          X