Announcement

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

  • [STATA 17] Problem with using newly installed command

    Hello Stata people,

    I hope everything is fine with you!!


    I recently purchased a STATA version 17 and have a problem with installing new command.

    When I use a newly installed command, such as "center" and try using it, I got an error message saying that "error occurred while loading center.ado". (r612)
    It seems that my STATA can't recognize or use the new command. It applies to any command that I newly downloaded (e.g. egen). I used to use STATA 16 version and had no such problem.

    Can someone help me out with this problem?

    Best,
    Jiwan
    Attached Files

  • #2
    Hard to say. My guess is that you installed via a browser and did not copy the entire file. If so, you'd be better off with

    Code:
    ssc install center. replace
    That said, there is no need or scope for installing egen separately. It's part of official Stata.
    Last edited by Nick Cox; 09 Oct 2021, 12:00.

    Comment


    • #3
      Thank you for your reply, Nick! I've tried that code, but still getting the same error message... I'm so frustrated.

      Comment


      • #4
        Copy the following code, paste it into your Do-file editor window, run it, copy the commands and results from your Results window, and paste that into a post using code delimiters [CODE] and [/CODE] to ensure readability.
        Code:
        clear all
        which center
        ssc install center, replace
        which center
        sysuse auto
        center weight
        When I do this on my Mac, this is the result.
        Code:
        . do "/var/folders/xr/lm5ccr996k7dspxs35yqzyt80000gp/T//SD12670.000000"
        
        . clear all
        
        . which center
        /Users/lisowskiw/Library/Application Support/Stata/ado/plus/c/center.ado
        *! version 1.10, Ben Jann, 13apr2017
        *! - now also allows iweights and pweights
        *! - now displays note about modified/generated variables
        *! - conflict between inplace and replace fixed
        *! - addlabel("") now removes the default label suffix
        *! version 1.09, Ben Jann, 31jan2014
        *! - option inplace: now replaces all obs within [if] and [in] even if casewise
        *!   is specified
        *! version 1.08, Ben Jann, 01sep2013
        *! - option inplace added
        *! version 1.07, Ben Jann, 22feb2006
        
        . ssc install center, replace
        checking center consistency and verifying not already installed...
        all files already exist and are up to date.
        
        . which center
        /Users/lisowskiw/Library/Application Support/Stata/ado/plus/c/center.ado
        *! version 1.10, Ben Jann, 13apr2017
        *! - now also allows iweights and pweights
        *! - now displays note about modified/generated variables
        *! - conflict between inplace and replace fixed
        *! - addlabel("") now removes the default label suffix
        *! version 1.09, Ben Jann, 31jan2014
        *! - option inplace: now replaces all obs within [if] and [in] even if casewise
        *!   is specified
        *! version 1.08, Ben Jann, 01sep2013
        *! - option inplace added
        *! version 1.07, Ben Jann, 22feb2006
        
        . sysuse auto
        (1978 automobile data)
        
        . center weight
        (generated variables: c_weight)
        
        . 
        end of do-file
        
        .

        Comment


        • #5
          Hi Lisowski, thank you for your help!
          I just tried your code and got this result:

          Code:
          . do "/var/folders/s_/l6syx5x12n9f_3j5p4rnnbr00000gn/T//SD02891.000000"
          
          . clear all
          
          . which center
          /Users/jiwanlee/Library/Application Support/Stata/ado/plus/c/center.ado
          *! version 1.10, Ben Jann, 13apr2017
          *! - now also allows iweights and pweights
          *! - now displays note about modified/generated variables
          *! - conflict between inplace and replace fixed
          *! - addlabel("") now removes the default label suffix
          *! version 1.09, Ben Jann, 31jan2014
          *! - option inplace: now replaces all obs within [if] and [in] even if casewise
          *!   is specified
          *! version 1.08, Ben Jann, 01sep2013
          *! - option inplace added
          *! version 1.07, Ben Jann, 22feb2006
          
          . ssc install center, replace
          I/O error
          r(691);
          
          end of do-file
          
          r(691);
          it seems that mine is apparently different yours...
          Last edited by Jiwan Lee; 09 Oct 2021, 14:38.

          Comment


          • #6
            See

            Code:
            help netio
            and especially the first three items. Your Stata can't access SSC and your use of proxy server may be the reason.

            Comment


            • #7
              Thank you, Nick! It seems complicated, but I will look at it.

              Comment

              Working...
              X