Creates a reproducible, low-rank outcome matrix with a block treatment indicator. Useful for unit tests or demonstrations that need structured data with controlled noise and treatment effects.
Value
A list containing the outcome matrix Y, latent matrix
L, and integers N0 and T0 describing the number of
control units and pre-treatment periods.
Examples
# \donttest{
# Generate synthetic data for testing
data <- random.low.rank()
# Run estimation
tau.hat <- synthdid_estimate(data$Y, data$N0, data$T0)
print(tau.hat)
#> synthdid: 1.100 +- 0.194. Effective N0/N0 = 86.5/100~0.9. Effective T0/T0 = 14.5/120~0.1. N1,T1 = 10,20. [NOT CONVERGED]
# True treatment effect is 1
tau.hat # Should be close to 1
#> synthdid: 1.100 +- 0.194. Effective N0/N0 = 86.5/100~0.9. Effective T0/T0 = 14.5/120~0.1. N1,T1 = 10,20. [NOT CONVERGED]
# }