Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "StructuralEquationModels"
uuid = "383ca8c5-e4ff-4104-b0a9-f7b279deed53"
authors = ["Maximilian Ernst", "Aaron Peikert"]
version = "0.2.0"
version = "0.2.1"

[deps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Expand Down
2 changes: 1 addition & 1 deletion src/additional_functions/start_val/start_fabin3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function start_fabin3(ram_matrices::RAMMatrices, Σ, μ)
end

for ram_constant in constants
if (ram_constant.matrix == :A) & (ram_constant.index[2] == i) & (ram_constant.index[1] ∈ F_ind)
if (ram_constant.matrix == :A) && (ram_constant.index[2] == i) && (ram_constant.index[1] ∈ F_ind)
push!(loadings, Symbol(""))
if isone(ram_constant.value)
push!(reference, ram_constant.index[1])
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/specification/RAMMatrices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function set_RAMConstant!(A, S, M, rc::RAMConstant)
S[rc.index] = rc.value
S[rc.index[2], rc.index[1]] = rc.value
elseif rc.matrix == :M
M[rd.index] = rc.value
M[rc.index] = rc.value
end
end

Expand Down Expand Up @@ -395,4 +395,4 @@ end

function get_group(d::Dict, group)
return d[group]
end
end
3 changes: 2 additions & 1 deletion test/examples/political_democracy/political_democracy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ graph = @StenoGraph begin
y8 ↔ y4 + y6
# means
Symbol("1") → _(mean_labels).*_(observed_vars)
Symbol("1") → fixed(0)*ind60
end

spec_mean = ParameterTable(
Expand All @@ -209,4 +210,4 @@ if ENV["JULIA_EXTENDED_TESTS"] == "true"
@testset "Graph → ParameterTable | parts | Optim" begin include("by_parts.jl") end
semoptimizer = SemOptimizerNLopt
@testset "Graph → ParameterTable | parts | NLopt" begin include("by_parts.jl") end
end
end