Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Commit 1fa80db

Browse files
Merge pull request #33 from alexmccreight/master
ash residual variance update parameter
2 parents aa7447d + d83d759 commit 1fa80db

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

R/sufficient_stats_methods.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ update_variance_components.ss <- function(data, params, model, ...) {
360360
intercept = FALSE,
361361
standardize = FALSE,
362362
sigma2 = mom_result$sigma2,
363-
update.sigma2 = FALSE,
363+
update.sigma2 = params$update_ash_sigma2,
364364
max.iter = 3000
365365
)
366366

R/susie.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ susie <- function(X, y, L = min(10, ncol(X)),
279279
estimate_prior_variance = TRUE,
280280
estimate_prior_method = c("optim", "EM", "simple"),
281281
unmappable_effects = c("none", "inf", "ash"),
282+
update_ash_sigma2 = FALSE,
282283
check_null_threshold = 0,
283284
prior_tol = 1e-9,
284285
residual_variance_upperbound = Inf,
@@ -310,7 +311,7 @@ susie <- function(X, y, L = min(10, ncol(X)),
310311
prior_weights, null_weight, standardize, intercept,
311312
estimate_residual_variance, estimate_residual_method,
312313
estimate_prior_variance, estimate_prior_method,
313-
unmappable_effects, check_null_threshold, prior_tol,
314+
unmappable_effects, update_ash_sigma2, check_null_threshold, prior_tol,
314315
residual_variance_upperbound, model_init, coverage,
315316
min_abs_corr, compute_univariate_zscore, na.rm,
316317
max_iter, tol, convergence_method, verbose, track_fit,

R/susie_constructors.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ individual_data_constructor <- function(X, y, L = min(10, ncol(X)),
2424
estimate_prior_variance = TRUE,
2525
estimate_prior_method = "optim",
2626
unmappable_effects = "none",
27+
update_ash_sigma2 = FALSE,
2728
check_null_threshold = 0,
2829
prior_tol = 1e-9,
2930
residual_variance_upperbound = Inf,
@@ -140,6 +141,7 @@ individual_data_constructor <- function(X, y, L = min(10, ncol(X)),
140141
estimate_prior_variance = estimate_prior_variance,
141142
estimate_prior_method = estimate_prior_method,
142143
unmappable_effects = unmappable_effects,
144+
update_ash_sigma2 = update_ash_sigma2,
143145
check_null_threshold = check_null_threshold,
144146
prior_tol = prior_tol,
145147
residual_variance_upperbound = residual_variance_upperbound,

0 commit comments

Comments
 (0)