Announcement

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

  • How to open a ".mlib" files with Stata?

    Dear all,
    I installed an online Stata code (mergersim) in Stata 11.
    The program consists several files which were installed in C:\ado\plus\m and C:\ado\plus\l.
    One of the files is a ".mlib" file. I'm trying to open it with Stata without success.
    I got the following error:
    file C:\ado\plus\l\lmergersim.mlib not Stata format
    r(610);
    Is there a way to open a ".mlib" files with Stata?
    Thank you for your time,
    Anat

  • #2
    lmergesim.mlib contains the compiled (byte) code for the mata files of the package. You cannot open it. You can see which functions it contains but without the source code, that's it. The question is why do you want to open this file?

    Code:
    . mata: mata describe using lmergersim.mlib
    (library contains 61 members)
    
    
          # bytes   type                        name and extent
    -------------------------------------------------------------------------------
            1,932   auto classdef scalar        CesLogitDemand()
              188   auto real scalar             ::consumerSurplus()
              244   auto real matrix             ::demand()
              244   auto real matrix             ::quantity()
              284   auto real matrix             ::share_jacobian()
              184   auto real matrix             ::shares()
            1,288   auto classdef scalar        Demand()
              100   auto void                    ::new()
            1,952   auto classdef scalar        LogitDemand()
            1,232   auto real scalar             ::consumerSurplus()
              232   auto real matrix             ::demand()
            1,640   auto void                    ::get_data()
              612   auto void                    ::init()
              172   auto void                    ::new()
              800   auto void                    ::parameters()
              232   auto real matrix             ::quantity()
            1,344   auto real matrix             ::share_jacobian()
            1,680   auto real matrix             ::shares()
              136   auto real scalar             ::valueshares()
            1,676   auto classdef scalar        Market()
            1,992   auto real matrix             ::equilibrium()
              452   auto void                    ::find_costs()
            2,236   auto real matrix             ::fixed_point()
              344   auto real matrix             ::foc()
              848   auto void                    ::get_data()
              292   auto void                    ::get_demand()
              596   auto void                    ::init()
              952   auto real matrix             ::jacobian()
              356   auto real matrix             ::margins()
              192   auto void                    ::new()
            2,700   auto real matrix             ::newton()
              240   auto void                    ::parameters()
              936   auto classdef scalar        Merger()
            1,096   auto void                    ::consumerSurplus()
              772   auto void                    ::costestimate()
              812   auto void                    ::demand()
            1,592   auto void                    ::equilibrium()
              248   auto void                    ::init()
              200   auto void                    ::new()
            1,692   auto classdef scalar        PcaidsDemand()
              292   auto real matrix             ::demand()
              392   auto real matrix             ::elas()
            1,008   auto void                    ::get_data()
              304   auto void                    ::init()
              100   auto void                    ::new()
              372   auto void                    ::parameters()
              212   auto real matrix             ::quantity()
              272   auto real matrix             ::share_jacobian()
              196   auto real matrix             ::shares()
              560   auto classdef scalar        Solver()
              632   auto classdef scalar        SolverParam()
              480   auto void                    ::init()
              160   auto void                    ::new()
              844   auto classdef scalar        VariableClass()
              700   auto void                    ::check_variable()
              300   auto void                    ::createvariable()
              308   auto void                    ::getvariable()
              456   auto real matrix             ::group_matrix()
            1,396   auto real matrix             ::groupindex()
              244   auto void                    ::period()
            1,348   auto void                    ::setperiods()
    -------------------------------------------------------------------------------

    Comment


    • #3
      Thank you very much Christophe,
      I want to apply the code to simulate my estimation results. Some of the output it provides is the change in consumer welfare. I am not sure which function is used to calculate consumer welfare as only the difference are provided.
      So, I guess there is no way I can see it.
      I'll try to reach out the authors.
      Thanks again.
      Anat

      Comment

      Working...
      X