iter_est_ws: Iterative Step to find best parameters with weighted sampling

Description Usage Arguments Value

View source: R/weighted-sampling.R

Description

Iterative Step to find best parameters with weighted sampling

Usage

1
iter_est_ws(init_par, freq, n_vec, x_vec, B = 10, iters = 10)

Arguments

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

Value

optim results for beta_0 and beta_1


skgallagher/TBornotTB documentation built on April 21, 2020, 1:19 p.m.