Description Usage Arguments Value
View source: R/weighted-sampling.R
Iterative Step to find best parameters with weighted sampling
1 | iter_est_ws(init_par, freq, n_vec, x_vec, B = 10, iters = 10)
|
init_par |
parameters to optimize over. par[1] is beta_0 and par[2] is beta_1 |
freq |
vector of times the cluster of size n with x positives occurred |
n_vec |
cluster sizes |
x_vec |
number of positives in each cluster |
B |
samples to make for each |
iters |
max number of iterations |
optim results for beta_0 and beta_1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.