Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: trouble with traveltime command


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: trouble with traveltime command
Date   Fri, 15 Feb 2013 11:02:46 +0000

See the thread starting at

http://www.stata.com/statalist/archive/2012-11/msg01111.html

and the later version on SSC. If that doesn't resolve the problem, I
suggest you contact the authors directly.

Nick

On Fri, Feb 15, 2013 at 10:35 AM, Valerie Orozco
<[email protected]> wrote:
> I am interested in the « geocode » and « traveltime » Stata commands.
> I have no problem with the "geocode" command. But I have some with the "traveltime" command. Indeed, I'm not able to obtain the travel distance the authors have on their paper in the Stata Journal (vol 11, nb 1, 2011). Here is the small example I use:
>
> . list end_city- start_lat
>
>      +---------------------------------------------------------------------------------------------------------+
>      |                               end_city         start_city   end_long     end_lat   start_~g   start_lat |
>      |---------------------------------------------------------------------------------------------------------|
>   1. | 1500 market st, philadelphia, PA 19102   Philadelphia, PA   39.95239   -75.16619   39.95234   -75.16379 |
>   2. |                       Philadelphia, PA   Philadelphia, PA   39.95234   -75.16379   39.95234   -75.16379 |
>   3. |                          Allentown, PA   Philadelphia, PA   40.60843   -75.49018   39.95234   -75.16379 |
>   4. |                          Lancaster, PA   Philadelphia, PA   40.03788   -76.30551   39.95234   -75.16379 |
>      +---------------------------------------------------------------------------------------------------------+
>
> When running traveltime, start_x(start_lat) start_y(start_long) end_x(end_lat) end_y(end_long)
> I get :
>
> . list  end_city start_city days hours mins traveltime_dist
>
>      +--------------------------------------------------------------------------------------------+
>      |                               end_city         start_city   days   hours   mins   travel~t |
>      |--------------------------------------------------------------------------------------------|
>   1. | 1500 market st, philadelphia, PA 19102   Philadelphia, PA      0       0      3          . |
>   2. |                       Philadelphia, PA   Philadelphia, PA      0       0      0                   .                |
>   3. |                          Allentown, PA   Philadelphia, PA      0       1     10                     . |
>   4. |                          Lancaster, PA   Philadelphia, PA      0       1     31                      . |
>      +--------------------------------------------------------------------------------------------+
>
> What is wrong with the missing travel distance? Is it a google problem?

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index