Closed behinger closed 2 years ago
ERROR: MethodError: no method matching MixedModelPermutation(::Vector{NamedTuple{(:objective, :σ, :β, :se, :θ), Tuple{Float64, Float64, NamedTuple{(Symbol("(Intercept)"), Symbol("condition: B")), Tuple{Float64, Float64}}, StaticArrays.SVector{2, Float64}, StaticArrays.SVector{2, Float64}}}}, ::Vector{Diagonal{Float64, Vector{Float64}}}, ::Vector{Vector{Int64}}, ::Vector{Float64}, ::NamedTuple{(:subj,), Tuple{Tuple{String, String}}}) Closest candidates are: MixedModelPermutation(::Vector, ::Array{LowerTriangular{T, Matrix{T}}, 1}, ::Vector{Vector{Int64}}, ::Vector{T}, ::NamedTuple) where T<:AbstractFloat at /store/users/ehinger/LMMPerm/dev/MixedModelsPermutations/src/mixedmodelpermutation.jl:27 Stacktrace: [1] permutation(rng::MersenneTwister, n::Int64, morig::LinearMixedModel{Float64}; use_threads::Bool, hide_progress::Bool, β::Vector{Float64}, residual_method::Symbol, blup_method::typeof(olsranef)) @ MixedModelsPermutations /store/users/ehinger/LMMPerm/dev/MixedModelsPermutations/src/permutation.jl:138
Apparent Problem: With zerocorr morig.\lambda is a Vector{Diagonal{Float64, Vector{Float64}}}, and apparently not a ::Array{LowerTriangular{T, Matrix{T}}, 1}, ::Vector{Vector{Int64}}
Vector{Diagonal{Float64, Vector{Float64}}},
::Array{LowerTriangular{T, Matrix{T}}, 1}, ::Vector{Vector{Int64}}
Without ZeroCorr it works for me
Apparent Problem: With zerocorr morig.\lambda is a
Vector{Diagonal{Float64, Vector{Float64}}},
and apparently not a::Array{LowerTriangular{T, Matrix{T}}, 1}, ::Vector{Vector{Int64}}
Without ZeroCorr it works for me