match.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:pscore_match 作者: kellieotto 项目源码 文件源码
def _match_info(self):
        """
        Helper function to create match info
        """
        assert self.matches is not None, 'No matches yet!'
        self.matches = {
            'match_pairs' : self.matches,
            'treated' : np.unique(list(self.matches.keys())),
            'control' : np.unique(list(self.matches.values()))
        }
        self.matches['dropped'] = np.setdiff1d(list(range(self.nobs)), 
                                    np.append(self.matches['treated'], self.matches['control']))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号