Skip to content

Commit

Permalink
Pull request #48: Eb dev
Browse files Browse the repository at this point in the history
Merge in STAT/prestogp from eb-dev to master

* commit 'd596c46f0d84704329b02cdf39f419e1ee9f626b':
  Fixed file permissions
  Removed the spam dependency to fix an R CMD check issue
  Observation-level lod, imputation tests, updated README
  • Loading branch information
ericbair-sciome authored and sciome-bot committed Apr 26, 2024
2 parents 4aa13ad + d596c46 commit aa730b5
Show file tree
Hide file tree
Showing 30 changed files with 16 additions and 10 deletions.
Empty file modified .github/workflows/check-standard.yaml
100755 → 100644
Empty file.
Empty file modified .github/workflows/lint.yaml
100755 → 100644
Empty file.
Empty file modified .github/workflows/release.yaml
100755 → 100644
Empty file.
Empty file modified .github/workflows/sanitizers.yaml
100755 → 100644
Empty file.
Empty file modified .github/workflows/test-coverage.yaml
100755 → 100644
Empty file.
Empty file modified .lintr
100755 → 100644
Empty file.
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: PrestoGP
Type: Package
Title: Penalized Regression for Spatio-Temporal Outcomes via Gaussian Processes
Version: 0.2.0.9030
Version: 0.2.0.9031
Authors@R: c(
person(given = "Eric",
family = "Bair",
Expand Down Expand Up @@ -35,7 +35,6 @@ Imports:
foreach,
rlang,
mvtnorm,
spam,
psych,
MASS,
Matrix,
Expand Down
16 changes: 8 additions & 8 deletions R/PrestoGP_Util_Functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ transform_iid <- function(data, vecchia.approx, covparms, nuggets) {
U.y <- U.obj$U[U.obj$latent, ]

# compute transformed data in parts
part1.ord <- Matrix::crossprod(U.z, data[U.obj$ord.z, ]) # C.hat^-1
part1.ord <- crossprod(U.z, data[U.obj$ord.z, ]) # C.hat^-1
temp1 <- U.y %*% part1.ord
revord <- rev(seq_len(nrow(temp1)))
temp2 <- spam::solve(V.ord, temp1[revord, ])
part2.rev <- spam::solve(Matrix::t(V.ord), temp2)
part2.ord <- spam::crossprod(U.y, part2.rev[revord, ])
temp2 <- solve(V.ord, temp1[revord, ])
part2.rev <- solve(Matrix::t(V.ord), temp2)
part2.ord <- crossprod(U.y, part2.rev[revord, ])
transform.ord <- part1.ord - part2.ord

# return to original ordering
Expand All @@ -156,12 +156,12 @@ transform_miid <- function(data, vecchia.approx, params) {
U.y <- U.obj$U[U.obj$latent, ]

# compute transformed data in parts
part1.ord <- Matrix::crossprod(U.z, data[U.obj$ord.z, ]) # C.hat^-1
part1.ord <- crossprod(U.z, data[U.obj$ord.z, ]) # C.hat^-1
temp1 <- U.y %*% part1.ord #
revord <- rev(seq_len(nrow(temp1)))
temp2 <- spam::solve(V.ord, temp1[revord, ])
part2.rev <- spam::solve(Matrix::t(V.ord), temp2)
part2.ord <- spam::crossprod(U.y, part2.rev[revord, ])
temp2 <- solve(V.ord, temp1[revord, ])
part2.rev <- solve(Matrix::t(V.ord), temp2)
part2.ord <- crossprod(U.y, part2.rev[revord, ])
transform.ord <- part1.ord - part2.ord

# return to original ordering
Expand Down
Empty file modified R/Visualization.R
100755 → 100644
Empty file.
Empty file modified R/utils-tidy-eval.R
100755 → 100644
Empty file.
Empty file modified man/FullModel-class.Rd
100755 → 100644
Empty file.
Empty file modified man/MultivariateVecchiaModel-class.Rd
100755 → 100644
Empty file.
7 changes: 7 additions & 0 deletions man/PrestoGP-package.Rd
100755 → 100644

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified man/PrestoGPModel-class.Rd
100755 → 100644
Empty file.
Empty file modified man/VecchiaModel-class.Rd
100755 → 100644
Empty file.
Empty file modified man/create.param.sequence.Rd
100755 → 100644
Empty file.
Empty file modified man/createUMultivariate.Rd
100755 → 100644
Empty file.
Empty file modified man/max_min_ordering.Rd
100755 → 100644
Empty file.
Empty file modified man/prestogp_predict.Rd
100755 → 100644
Empty file.
Empty file modified man/show-PrestoGPModel-method.Rd
100755 → 100644
Empty file.
Empty file modified man/show_theta-PrestoGPModel-method.Rd
100755 → 100644
Empty file.
Empty file modified man/soil.Rd
100755 → 100644
Empty file.
Empty file modified man/tidyeval.Rd
100755 → 100644
Empty file.
Empty file modified man/vecchia_Mlikelihood.Rd
100755 → 100644
Empty file.
Empty file modified man/vecchia_Mprediction.Rd
100755 → 100644
Empty file.
Empty file modified man/vecchia_Mspecify.Rd
100755 → 100644
Empty file.
Empty file modified man/weather.Rd
100755 → 100644
Empty file.
Empty file modified tests/testthat/Umat.rds
100755 → 100644
Empty file.
Empty file modified tests/testthat/multivariate_sim_spatial3.Rdata
100755 → 100644
Empty file.
Empty file modified tests/testthat/small_sim.Rdata
100755 → 100644
Empty file.

0 comments on commit aa730b5

Please sign in to comment.