Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_w_soln() undefined #53

Open
hopehappyday0414 opened this issue Jun 8, 2023 · 0 comments
Open

get_w_soln() undefined #53

hopehappyday0414 opened this issue Jun 8, 2023 · 0 comments

Comments

@hopehappyday0414
Copy link

For function
extract_data_info(signal_model,
linear_model,
ref_covs,
alt_covs,
exp_quantiles = c(0.15, 0.85),
exp_bounds = NULL,
num_points = 100L,
normalize_to = NULL)
signal_model to extract weights from get_w_soln()
However, get_w_soln() has not been defined by MRBeRT module
I want to know whether the followed code can replace the role of get_w_soln()
w <- t(do.call(rbind,
lapply(1:length(signal_model$sub_models),
function(i){signal_model$sub_models[[i]]$w_soln}))
) %*% signal_model$weights

Or what can I do to make extract_data_info() run correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant