Skip to content

Commit

Permalink
Bugfix concerning autoregressive models. Thanks EC.
Browse files Browse the repository at this point in the history
  • Loading branch information
Facundo Muñoz committed Jun 2, 2014
1 parent a8e8896 commit c6674ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: breedR
Type: Package
Title: Statistical methods for forest genetic resources analysts
Version: 0.6-2
Version: 0.6-3
Date: 2013-11-12
Encoding: UTF-8
Authors@R: c(person("Facundo", "Muñoz",
Expand Down
3 changes: 2 additions & 1 deletion R/ar.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ build.ar.model <- function (coord, rho, autofill) {
# from the precision matrix?
B <- sparseMatrix(i = 1:length(data.ordering),
j = data.ordering,
x = 1)
x = 1,
dims = c(length(data.ordering), dimUinv[1]))

Uinv <- Uinv * gmean(Matrix::diag(B %*% solve(Uinv) %*% Matrix::t(B)))

Expand Down

0 comments on commit c6674ee

Please sign in to comment.