pl. suggest why this error?????
sib.jl
-------------------------------

function 
regre{::Tuple}(y::Array{Float64,1}=[8,5,9,7,4],x::Array{Float64,}=[1:5])

      n::Int64=size(x,1)

      a::Array=[[ones(Float64,n)] [x]]

      p::Int64=size(a,2)

      s::Array=inv(transpose(a)*a)

      b::Array=s*transpose(a)*y

      return (y,a,b)

end


function summary(regre::Tuple=regre())

        y, x2, b=regre()

        e::Array=y-x2*b

        sig2::Float64 =(transpose(e)*e)/(size(x,1)-size(x,2))

        println(sig2)

end

summary()


-----------------------------


julia> sib

LoadError("/Users/sibnarayanguria/Documents/R_F/sib.jl",0,ErrorException("syntax:
 malformed type parameter list"))


julia> 


---------------------------

julia> versioninfo()

Julia Version 0.2.0

Commit 05c6461 (2013-11-16 23:44 UTC)

Platform Info:



julia> 

  System: Darwin (x86_64-apple-darwin12.5.0)

  WORD_SIZE: 64

  BLAS: libgfortblas

  LAPACK: liblapack

  LIBM: libopenlibm


julia> 

Reply via email to