[julia-users] Re: Has anyone successfully performed probit or logit regression in Julia?

2014-08-31 Thread Adam Kapor
This works for me: ``` *julia **fit(GeneralizedLinearModel,Y~X,data,Binomial(),ProbitLink())* *DataFrameRegressionModel{GeneralizedLinearModel,Float64}:* *Coefficients:* *Estimate Std.Error z value Pr(|z|)* *(Intercept) 0.430727 1.980190.217518 0.8278* *X

[julia-users] trouble building julia on mac

2014-08-13 Thread Adam Kapor
I just tried building the latest master on my mac; I get the following error. Any ideas on what to do -- I'm pretty new to this. Googling tells me that this is an issue with clang in Xcode 5.1 but what can I do to fix this? Thanks, Adam adams-air:julia adamkapor$ make Making install

Re: [julia-users] trouble building julia on mac

2014-08-13 Thread Adam Kapor
Thank you Elliot and Jameson. I indeed recently upgraded Xcode and clang, and `make -C deps distclean-fftw` did the trick. On Wed, Aug 13, 2014 at 2:39 PM, Jameson Nash vtjn...@gmail.com wrote: Especially true if you just upgraded you OS / compiler, you should start again with a fresh clone

[julia-users] Re: parallel for loop suggestions?

2014-07-07 Thread Adam Kapor
I had a similar issue (former Matlab user, big likelihood computation that needs a giant read-only matrix for each observation.) I haven't dealt with preallocating outputs, but for the read-only matrices can you do something like: mybigmatrix = ... # @everywhere const mybigmatrix =

[julia-users] typeassert when assigning to elements of array

2014-05-28 Thread Adam Kapor
I'm not sure what :(::) is supposed to do below, but not giving an error at top level suggests to me that x[1] is an expression computing a value. In any case, I was surprised that += runs but doesn't `setindex!` x julia x=zeros(2) 2-element Array{Float64,1}: 0.0 0.0 julia x[1]::Float64 +=

[julia-users] get is more eager than I thought

2014-04-06 Thread Adam Kapor
Is get supposed to evaluate the fallback argument? I was surprised by this: julia dict1 = {1=1} {1=1} julia dict2 = Dict() Dict{Any,Any}() julia get(dict1,1,get!(dict2,1,2)) 1 julia dict2 {1=2} The other method is more what I'd have expected julia get(dict1,1) do