for j in range(n):
// Initializes weights
for k in range(n):
weights[k] = 1.1 - .2 * self.rng.random()
for k in range(n, len(weights)):
weights[k] = 0.0
if propensity:
weights[5 * n] = -2.0
After Change
for k in range(n, len(weights)):
weights[k] = 0.0
if propensity:
weights[len(weights) - 1] = 0.0
_fit_deps(m, n, j, L, weights, joint, higher_order, propensity, threshold, truncation)