Function that returns the correct weights for weighted bootstrap

Function that returns the correct weights for weighted bootstrap

getWeights(weights, draw_weights, n)

getWeights(weights, draw_weights, n)

Arguments

weights

vector of existing regression weights

draw_weights

whether draw random exponential weights

n

number of weights to draw