----------------------------------------------- lines 6-53 of file: example/csv/cov_same_xam.py ----------------------------------------------- {xrst_begin csv.cov_same_xam} {xrst_spell haqi } Example and Test of covariate_same ################################## Covariates ********** This example has two covariates, haqi and income. haqi ==== This covariate only depends on age and time; i.e., it is the same for all nodes and both sexes. income ====== This covariate depends on age, time, and sex. It is the same for all nodes. covariate_table *************** The covariate table is shuffled, after it is created, to demonstrate the fact that the order of its rows does not matter. cov_same ******** cov_same is checked to see that it detects the following: haqi ==== This covariate is the same for all nodes and both sexes. income ====== This covariate is different for each sex, but given sex it is the same for all nodes. Source ****** {xrst_literal # BEGIN_SOURCE # END_SOURCE } {xrst_end csv.cov_same_xam}