Skip to content

Commit 97cb983

Browse files
committed
Updated RFX DGP in the probit BCF debug python script
1 parent 533f2a1 commit 97cb983

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/debug/probit_bcf_rfx_debug.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import matplotlib.pyplot as plt
99

1010
# Generate data for a probit BCF model with random effects
11-
n = 500
11+
n = 1000
1212
p = 5
1313
rng = np.random.default_rng(1234)
1414
X = rng.uniform(low=0.0, high=1.0, size=(n, p))
@@ -21,7 +21,7 @@
2121
basis = np.empty((n, 2))
2222
basis[:, 0] = 1.0
2323
basis[:, 1] = rng.uniform(0, 1, (n,))
24-
rfx_coefs = np.array([[-2, -2], [0, 0], [2, 2]])
24+
rfx_coefs = np.array([[-1, 1], [0, 1], [1, 1]])
2525
rfx_term = np.sum(rfx_coefs[group_labels, :] * basis, axis=1)
2626
E_XZ = mu_x + Z * tau_x + rfx_term
2727
W = E_XZ + rng.normal(loc=0.0, scale=1.0, size=(n,))

0 commit comments

Comments
 (0)