[julia-users] Re: [help]: configuring Julia and Sublime text 2 on windows 8.1

2015-10-03 Thread Donald Lacombe
Stefano, I have had success using Sublime Text with Julia on Windows 7 using these instructions: https://github.com/quinnj/Sublime-IJulia If you follow these directions carefully, you should be able to get it up and running. There are also two other alternatives which may appeal to you: http

[julia-users] Using Distance Package for knn Weight Matrix

2014-07-02 Thread Donald Lacombe
Greetings! I am a new Julia user and have the following issue. I am writing code to calculate a knn spatial weight matrix to estimate a spatial econometric model. Using the MATLAB code from Jim LeSage's Econometrics Toolbox, I converted that code into Julia as follows: xc = rand(8); yc = rand

[julia-users] Re: Using Distance Package for knn Weight Matrix

2014-07-02 Thread Donald Lacombe
summer and will probably be back to bug everyone again. Thanks, Don On Wednesday, July 2, 2014 10:22:58 AM UTC-4, Donald Lacombe wrote: > > Greetings! > > I am a new Julia user and have the following issue. I am writing code to > calculate a knn spatial weight matrix to estimate a spati

[julia-users] Re: Using Distance Package for knn Weight Matrix

2014-07-02 Thread Donald Lacombe
vert these before using this command? I'm probably missing something really basic so apologies for the query. Thanks, Don On Wednesday, July 2, 2014 4:20:55 PM UTC-4, Donald Lacombe wrote: > > Greetings, part 2... > > After doing some tests, I found that this code works

[julia-users] Re: Using Distance Package for knn Weight Matrix

2014-07-02 Thread Donald Lacombe
et Vector slices for free. If you slice rows, the shape will > be maintained, so you get a row back. You can flatten this to a Vector with > the vec() function. > > Hope this helps! > > On Wednesday, July 2, 2014 4:23:52 PM UTC-5, Donald Lacombe wrote: >> >> After thi

[julia-users] Re: Using Distance Package for knn Weight Matrix

2014-07-02 Thread Donald Lacombe
ype but I'm not sure how to correct this which would seem to require that the data being read in are of Float type. Again, thank you for all of the help. Don On Wednesday, July 2, 2014 7:10:09 PM UTC-4, Donald Lacombe wrote: > > Patrick, > > Thank you for the reply! I will tr

[julia-users] Re: Using Distance Package for knn Weight Matrix

2014-07-03 Thread Donald Lacombe
dcsv, say readcsv("ct_coord.csv", Float64). See > help(readdlm) for additional options for things like removing header rows, > etc. If the data is of mixed types, then you may find readtable in the > DataFrames package more capable. > > > On Wednesday, July 2, 2014 5

[julia-users] Re: Using Distance Package for knn Weight Matrix

2014-07-03 Thread Donald Lacombe
id ( > https://en.wikipedia.org/wiki/Geodesics_on_an_ellipsoid, > https://en.wikipedia.org/wiki/Vincenty%27s_formulae). That would probably > not be accepted by Distance.jl, and is unlikely to be worthwhile for your > application. > > On Wednesday, July 2, 2014 7:05:21 PM UTC-5,

[julia-users] Re: Using Distance Package for knn Weight Matrix

2014-07-03 Thread Donald Lacombe
n issue for others as well. Thanks, Don On Thursday, July 3, 2014 6:49:18 PM UTC-4, Patrick O'Leary wrote: > > On Thursday, July 3, 2014 5:36:23 PM UTC-5, Donald Lacombe wrote: >> >> I'm no GIS expert (I'm an applied econometrician) and the code I've >>

[julia-users] Re: Using Distance Package for knn Weight Matrix

2014-07-03 Thread Donald Lacombe
frids wrote: > > You can use dropna() to convert a DataArray to a Array. This will > obviously drop any missing values. > > On Friday, July 4, 2014 2:08:55 AM UTC+3, Donald Lacombe wrote: >> >> Patrick (and others), >> >> Another issue that has reared

[julia-users] Re: Using Distance Package for knn Weight Matrix

2014-07-03 Thread Donald Lacombe
but it doesn't seem to work in my case. Thoughts? Thanks, Don On Thursday, July 3, 2014 7:54:49 PM UTC-4, Johan Sigfrids wrote: > > You can use dropna() to convert a DataArray to a Array. This will > obviously drop any missing values. > > On Friday, July 4, 2014 2:08

[julia-users] Using Sparse Matrix Algorithms: Spatial Econometrics

2014-07-07 Thread Donald Lacombe
Dear Julia Users, I am currently developing/converting several Bayesian spatial econometric models from MATLAB into Julia. I have successfully coded the spatial autoregressive model (SAR) with diffuse priors in Julia but have a question regarding the use of sparse matrix algorithms. The models

[julia-users] Re: Using Sparse Matrix Algorithms: Spatial Econometrics

2014-07-08 Thread Donald Lacombe
y from a style point of view, there's no need to keep functions in > separate files, or end lines with semi-colons. > > Simon > > > > On Tuesday, 8 July 2014 01:48:56 UTC+1, Donald Lacombe wrote: >> >> Dear Julia Users, >> >> I am currently developing

Re: [julia-users] Re: Using Sparse Matrix Algorithms: Spatial Econometrics

2014-07-08 Thread Donald Lacombe
or sparse lu factorizations yet, see the >> issue mentioned above). >> * Purely from a style point of view, there's no need to keep functions in >> separate files, or end lines with semi-colons. >> >> Simon >> >> >> >> On Tuesda

[julia-users] Re: Using Sparse Matrix Algorithms: Spatial Econometrics

2014-07-11 Thread Donald Lacombe
a "pretty printing" function somewhat akin to the output of R, etc. Thanks, Don On Wednesday, July 9, 2014 5:23:19 AM UTC-4, Simon Byrne wrote: > > Hi Don, > > On Tuesday, 8 July 2014 20:51:42 UTC+1, Donald Lacombe wrote: >> >> 2) When I use A = sparse(In - rho*W

[julia-users] Question Regarding Issue Tracker

2014-07-26 Thread Donald Lacombe
Dear Julia Users, A while ago, Simon Byrne files the following issue on GitHub: https://github.com/JuliaLang/julia/issues/7543 I see that the issue is currently "closed" but I'm unsure if the suggestion has been incorporated or is just there for posterity. Is there a way to find out what happe

Re: [julia-users] Question Regarding Issue Tracker

2014-07-26 Thread Donald Lacombe
gt; > — John > > On Jul 26, 2014, at 9:07 AM, Donald Lacombe > wrote: > > > Dear Julia Users, > > > > A while ago, Simon Byrne files the following issue on GitHub: > > > > https://github.com/JuliaLang/julia/issues/7543 > > > > I

[julia-users] Julia equivalent of MATLAB "colamd"

2014-07-30 Thread Donald Lacombe
Dear Julia Users: I am attempting to speed up some code regarding some Bayesian spatial econometric models and would like to translate some MATLAB code for computing the log determinant term in the log-likelihood function. Specifically, I'm interested in the Pace and Barry approximation to the

[julia-users] Re: Julia equivalent of MATLAB "colamd"

2014-07-31 Thread Donald Lacombe
The code will be very easy to convert once I figure out this one command, Thank you in advance for any help that you are able or willing to provide. I'm not an expert as sparse matrices but these routines come in very handy for these types of calculations. Thanks, Don On Thursday, July 3

[julia-users] Re: Julia equivalent of MATLAB "colamd"

2014-07-31 Thread Donald Lacombe
n. Regards, Don On Thursday, July 31, 2014 4:49:21 PM UTC-4, Douglas Bates wrote: > > Rats, I had a reply with code and examples then Google groups croaked and > when it reloaded my draft reply was gone. > > On Thursday, July 31, 2014 2:13:36 PM UTC-5, Donald Lacombe wrote: >&

[julia-users] Re: Julia equivalent of MATLAB "colamd"

2014-08-01 Thread Donald Lacombe
glas Bates wrote: > > On Thursday, July 31, 2014 8:33:49 PM UTC-5, Donald Lacombe wrote: >> >> Dear Doug, >> >> Thank you for taking the time to look at this. In actuality, the W matrix >> is a spatial weight matrix which defines who is a neighbor to whom. I thi

[julia-users] Re: Using Distance Package for knn Weight Matrix

2014-08-01 Thread Donald Lacombe
wiki/Geodesics_on_an_ellipsoid, > https://en.wikipedia.org/wiki/Vincenty%27s_formulae). That would probably > not be accepted by Distance.jl, and is unlikely to be worthwhile for your > application. > > On Wednesday, July 2, 2014 7:05:21 PM UTC-5, Donald Lacombe wrote: >

[julia-users] Pretty Printing of Results

2014-09-23 Thread Donald Lacombe
Dear Julia Users, I have been coding various Bayesian spatial econometric models and have a question that is probably very basic but the solution eludes me. I'd like to be able to "pretty print" the output from the models akin to a standard regression package like so: Direct Effects Variable

[julia-users] Re: Pretty Printing of Results

2014-09-24 Thread Donald Lacombe
/github.com/JuliaStats/DataFrames.jl/blob/cb9cd7f4c72eb49efd94d722731919a4086f683c/src/dataframe/dataframe.jl#L683> > > of the describe function. Or instead of using rpad to get the spacing > right, you can use @printf or @sprintf instead. > > On Tuesday, September 23, 2014 6:2

Re: [julia-users] Re: Pretty Printing of Results

2014-09-24 Thread Donald Lacombe
Dear Milan, Thank you for this information. I think that it will prove to be very useful for my needs. Regards, Don On Wednesday, September 24, 2014 3:29:00 AM UTC-4, Milan Bouchet-Valat wrote: > > Le mardi 23 septembre 2014 à 17:45 -0700, Jason Knight a écrit : > > Donald, > > > > I wou

Re: [julia-users] Re: Pretty Printing of Results

2014-09-24 Thread Donald Lacombe
Dear Milan, Do you have a link to the "coeftable" code? I looked here but could not find it: https://github.com/JuliaStats/StatsBase.jl Thanks, Don On Wednesday, September 24, 2014 3:29:00 AM UTC-4, Milan Bouchet-Valat wrote: > > Le mardi 23 septembre 2014 à 17:45 -0700, Jason Knight a écrit

Re: [julia-users] Re: Pretty Printing of Results

2014-09-24 Thread Donald Lacombe
Jason, I copied lines 26-82 from the Git Hub page you kindly referenced and did the following: In [4]: mat = [1 2 3;4 5 6;7 8 9] Out [4]: 3x3 Array{Int64,2}: 1 2 3 4 5 6 7 8 9 In [5]: colnms =["a";"b";"c"] Out [5]: 3-element Array{ASCIIString,1}: "a" "b" "c" In [6]: rownms = [

Re: [julia-users] Re: Pretty Printing of Results

2014-09-24 Thread Donald Lacombe
Jason, I think you may have saved my sanity! Here is the output: In [22]: temp = CoefTable(mat,colnms,rownms) Out [22]: a b c a1 2 3 b4 5 6 c7 8 9 In [23]: show(temp) a b c a1 2 3 b4 5 6 c7 8 9 These actually line up perfectly in my Sublime Editor so I thin

Re: [julia-users] Re: Pretty Printing of Results

2014-09-24 Thread Donald Lacombe
> but this looks like a useful bit of code that could go in a library. > > -- Leah > > On Wed, Sep 24, 2014 at 7:49 PM, Donald Lacombe > wrote: > >> Jason, >> >> I think you may have saved my sanity! Here is the output: >> >> In [22]: temp = Coef

Re: [julia-users] Re: Pretty Printing of Results

2014-09-24 Thread Donald Lacombe
e from. :) > > Your journey awaits: http://docs.julialang.org/en/latest/manual/packages/ > > On Wed, Sep 24, 2014 at 7:56 PM, Donald Lacombe > wrote: > >> Dear Leah, >> >> I actually used the following code that Jason told me about: >> >> https://githu

[julia-users] Re: [help]: configuring Julia and Sublime text 2 on windows 8.1

2015-11-04 Thread Donald Lacombe
John, I have not tried Sublime Text with Julia 0.4 (32 or 64-bit). I was able to install and run an earlier version of Julia (I believe some 0.3 variety) 64-bit and it worked just fine. If you look at the issues related to Sublime-IJulia it appears that there are some issues with 0.4: https://