INNER CODE UNIT · Python

from_arrays

DoubleML/doubleml-for-py · doubleml/data/__init__.py:54

    def from_arrays(
        cls, x, y, d, cluster_vars, z=None, t=None, s=None, use_other_treat_as_covariate=True, force_all_x_finite=True
    ):
        """
        Initialize :class:`DoubleMLClusterData` from :class:`numpy.ndarray`'s.
        This method is deprecated and will be removed with version 0.12.0,
        use DoubleMLData.from_arrays with cluster_vars instead.
        """
        warnings.warn(
            "DoubleMLClusterData is deprecated and will be removed with version 0.12.0. "
            "Use DoubleMLData.from_arrays with cluster_vars instead.",
            FutureWarning,
            stacklevel=2,
        )
        return DoubleMLData.from_arrays(
            x=x,
            y=y,
            d=d,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…