+ Reply to Thread
Results 1 to 2 of 2

Thread: log variable on stata

  1. #1
    Points: 2,958, Level: 33
    Level completed: 39%, Points required for next Level: 92

    Posts
    38
    Thanks
    3
    Thanked 0 Times in 0 Posts

    log variable on stata



    Dear all,

    I am running a bivariate probit with stata and there are some continuous logged variables where the equation as follows

    dummyx1=cons.+ log x2 + log x3 + log x4 + dummy + .......and so on

    and the second equation or dependent var is the same.

    so how to do the log for these variables before running the regression

    thanks a lot in advance

    best regards

  2. #2
    Points: 2,352, Level: 29
    Level completed: 35%, Points required for next Level: 98

    Location
    Paris
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: log variable on stata


    Hey there,

    It seems that you just need to generate new variables that are the log of your dependent variables. So just : gen logx = log(x). Or maybe I don't understand the problem.

    Etienne

+ Reply to Thread

Similar Threads

  1. Generating a new variable in STATA
    By Infernape in forum Stata
    Replies: 3
    Last Post: 12-18-2010, 04:57 PM
  2. [STATA] - Adding space in merged variable
    By stataqueries in forum Stata
    Replies: 3
    Last Post: 08-31-2010, 12:31 PM
  3. Replies: 1
    Last Post: 08-11-2010, 09:59 AM
  4. Stata Help: Indicator Variable Problem
    By bowser in forum Stata
    Replies: 1
    Last Post: 02-14-2010, 10:29 AM
  5. [STATA] Lagged variable
    By GuiGui in forum Stata
    Replies: 6
    Last Post: 02-03-2010, 01:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts








Advertise on Talk Stats