Not really sure. Can you try printing out each of the columns to see where the 
error is? Maybe the problem is with our new code for printing shorthand rather 
than eps() when p is very small. (That’s just total speculation, though.)

 — John

On Jul 4, 2014, at 1:04 PM, Florian Oswald <[email protected]> wrote:

> HI,
> 
> in this example, why do I get an InexactError() when showing the fit summary? 
> (I even converted :age to a Float)
> 
> 
> data = dataset("Ecdat","Benefits")
> d2 = DataFrame(age = convert(DataArray{Float64},data[:Age]), StateUR = 
> data[:StateUR], sex = convert(PooledDataArray,data[:Sex]))
> julia> typeof(d2[:sex])
> 
> PooledDataArray{ASCIIString,Uint8,1} (constructor with 1 method)
> 
> julia> typeof(d2[:StateUR])
> 
> DataArray{Float64,1} (constructor with 1 method)
> 
> julia> typeof(d2[:age])
> 
> DataArray{Float64,1} (constructor with 1 method)
> 
> 
> gives this error
> 
> julia> fm = fit(LinearModel, StateUR ~ age + sex,d2)
> 
> DataFrameRegressionModel{LinearModel{DensePredQR{Float64}},Float64}:
> 
> 
> 
> Coefficients:
> 
> Error showing value of type 
> DataFrameRegressionModel{LinearModel{DensePredQR{Float64}},Float64}:
> 
> ERROR: InexactError()
> 
>  in format_pvc at 
> /Users/florianoswald/.julia/v0.3/StatsBase/src/statmodels.jl:46
> 
>  in show at /Users/florianoswald/.julia/v0.3/StatsBase/src/statmodels.jl:61
> 
>  in show at 
> /Users/florianoswald/.julia/v0.3/DataFrames/src/statsmodels/statsmodel.jl:83
> 
>  in anonymous at show.jl:1068
> 
>  in showlimited at show.jl:1067
> 
>  in writemime at replutil.jl:2
> 
>  in display at REPL.jl:117
> 
>  in display at REPL.jl:120
> 
>  in display at multimedia.jl:149
> 
>  in print_response at REPL.jl:139
> 
>  in print_response at REPL.jl:124
> 
>  in anonymous at REPL.jl:551
> 
>  in anonymous at REPL.jl:719
> 
>  in anonymous at LineEdit.jl:1185
> 
> 

Reply via email to