-
Notifications
You must be signed in to change notification settings - Fork 8
bootstrap error #24
Copy link
Copy link
Open
Description
this is missing WHERE {self.rowid_col} IN (SELECT unnest(?))
if not self.cluster_col:
# IID bootstrap
total_rows = self.conn.execute(
f"SELECT COUNT(DISTINCT {self.rowid_col}) FROM {self.table_name}"
).fetchone()[0]
unique_rows = total_rows
self.bootstrap_query = f"""
SELECT {", ".join(self.strata_cols)}, {", ".join(["COUNT(*) as count"] + [f"SUM({var}) as sum_{var}" for var in self.outcome_vars])}
FROM {self.table_name}
GROUP BY {", ".join(self.strata_cols)}
"""
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels