@@ -110,7 +110,7 @@ class DoubleMLData(DoubleMLBaseData):
110110 Default is ``None``.
111111
112112 s_col : None or str
113- The selection variable (only relevant/used for SSM Estimatiors).
113+ The score or selection variable (only relevant/used for RDD or SSM Estimatiors).
114114 Default is ``None``.
115115
116116 use_other_treat_as_covariate : bool
@@ -182,7 +182,7 @@ def _data_summary_str(self):
182182 if self .t_col is not None :
183183 data_summary += f'Time variable: { self .t_col } \n '
184184 if self .s_col is not None :
185- data_summary += f'Selection variable: { self .s_col } \n '
185+ data_summary += f'Score/ Selection variable: { self .s_col } \n '
186186 data_summary += f'No. Observations: { self .n_obs } \n '
187187 return data_summary
188188
@@ -212,7 +212,7 @@ def from_arrays(cls, x, y, d, z=None, t=None, s=None, use_other_treat_as_covaria
212212 Default is ``None``.
213213
214214 s : :class:`numpy.ndarray`
215- Array of the selection variable (only relevant/used for SSM models).
215+ Array of the score or selection variable (only relevant/used for RDD and SSM models).
216216 Default is ``None``.
217217
218218 use_other_treat_as_covariate : bool
@@ -351,7 +351,7 @@ def t(self):
351351 @property
352352 def s (self ):
353353 """
354- Array of selection variable.
354+ Array of score or selection variable.
355355 """
356356 if self .s_col is not None :
357357 return self ._s .values
@@ -538,7 +538,7 @@ def t_col(self, value):
538538 @property
539539 def s_col (self ):
540540 """
541- The selection variable.
541+ The score or selection variable.
542542 """
543543 return self ._s_col
544544
@@ -547,10 +547,10 @@ def s_col(self, value):
547547 reset_value = hasattr (self , '_s_col' )
548548 if value is not None :
549549 if not isinstance (value , str ):
550- raise TypeError ('The selection variable s_col must be of str type (or None). '
550+ raise TypeError ('The score or selection variable s_col must be of str type (or None). '
551551 f'{ str (value )} of type { str (type (value ))} was passed.' )
552552 if value not in self .all_variables :
553- raise ValueError ('Invalid selection variable s_col. '
553+ raise ValueError ('Invalid score or selection variable s_col. '
554554 f'{ value } is no data column.' )
555555 self ._s_col = value
556556 else :
@@ -725,24 +725,24 @@ def _check_disjoint_sets_t_s(self):
725725 if self .s_col is not None :
726726 s_col_set = {self .s_col }
727727 if not s_col_set .isdisjoint (x_cols_set ):
728- raise ValueError (f'{ str (self .s_col )} cannot be set as selection variable ``s_col`` and covariate in '
728+ raise ValueError (f'{ str (self .s_col )} cannot be set as score or selection variable ``s_col`` and covariate in '
729729 '``x_cols``.' )
730730 if not s_col_set .isdisjoint (d_cols_set ):
731- raise ValueError (f'{ str (self .s_col )} cannot be set as selection variable ``s_col`` and treatment variable in '
732- '``d_cols``.' )
731+ raise ValueError (f'{ str (self .s_col )} cannot be set as score or selection variable ``s_col`` and treatment '
732+ 'variable in ``d_cols``.' )
733733 if not s_col_set .isdisjoint (y_col_set ):
734- raise ValueError (f'{ str (self .s_col )} cannot be set as selection variable ``s_col`` and outcome variable '
735- '``y_col``.' )
734+ raise ValueError (f'{ str (self .s_col )} cannot be set as score or selection variable ``s_col`` and outcome '
735+ 'variable ``y_col``.' )
736736 if self .z_cols is not None :
737737 z_cols_set = set (self .z_cols )
738738 if not s_col_set .isdisjoint (z_cols_set ):
739- raise ValueError (f'{ str (self .s_col )} cannot be set as selection variable ``s_col`` and instrumental '
740- 'variable in ``z_cols``.' )
739+ raise ValueError (f'{ str (self .s_col )} cannot be set as score or selection variable ``s_col`` and '
740+ 'instrumental variable in ``z_cols``.' )
741741 if self .t_col is not None :
742742 t_col_set = {self .t_col }
743743 if not s_col_set .isdisjoint (t_col_set ):
744- raise ValueError (f'{ str (self .s_col )} cannot be set as selection variable ``s_col`` and time variable '
745- '``t_col``.' )
744+ raise ValueError (f'{ str (self .s_col )} cannot be set as score or selection variable ``s_col`` and time '
745+ 'variable ``t_col``.' )
746746
747747
748748class DoubleMLClusterData (DoubleMLData ):
@@ -780,7 +780,7 @@ class DoubleMLClusterData(DoubleMLData):
780780 Default is ``None``.
781781
782782 s_col : None or str
783- The selection variable (only relevant/used for SSM Estimatiors).
783+ The score or selection variable (only relevant/used for RDD and SSM Estimatiors).
784784 Default is ``None``.
785785
786786 use_other_treat_as_covariate : bool
@@ -854,7 +854,7 @@ def _data_summary_str(self):
854854 if self .t_col is not None :
855855 data_summary += f'Time variable: { self .t_col } \n '
856856 if self .s_col is not None :
857- data_summary += f'Selection variable: { self .s_col } \n '
857+ data_summary += f'Score/ Selection variable: { self .s_col } \n '
858858
859859 data_summary += f'No. Observations: { self .n_obs } \n '
860860 return data_summary
@@ -888,7 +888,7 @@ def from_arrays(cls, x, y, d, cluster_vars, z=None, t=None, s=None, use_other_tr
888888 Default is ``None``.
889889
890890 s : :class:`numpy.ndarray`
891- Array of the selection variable (only relevant/used for SSM models).
891+ Array of the score or selection variable (only relevant/used for RDD or SSM models).
892892 Default is ``None``.
893893
894894 use_other_treat_as_covariate : bool
@@ -1039,7 +1039,7 @@ def _check_disjoint_sets_cluster_cols(self):
10391039 'cluster variable in ``cluster_cols``.' )
10401040 if self .s_col is not None :
10411041 if not s_col_set .isdisjoint (cluster_cols_set ):
1042- raise ValueError (f'{ str (self .s_col )} cannot be set as selection variable ``s_col`` and '
1042+ raise ValueError (f'{ str (self .s_col )} cannot be set as score or selection variable ``s_col`` and '
10431043 'cluster variable in ``cluster_cols``.' )
10441044
10451045 def _set_cluster_vars (self ):
0 commit comments