python中的双向固定效应模型

pytwoway-pkg的Python项目详细描述


Pytoway公司

python中的双向固定效应模型

要使用默认选项运行:

  • 如果你有数据
frompytwowayimporttwfe_networkastn# data is labor data, formatting is 'long' or 'event study', and col_dict gives a dictionary of column names:d_net=tn.twfe_network(data,formatting,col_dict)# Convert long data into event study data (not necessary if the data is already in event study format):d_net.refactor_es()# Run the bias-corrected AKM estimator:d_net.run_akm_corrected()# Cluster firms based on their wage CDFs (required for the CRE estimator)d_net.cluster()# Run the CRE estimatord_net.run_cre()
  • 如果你想模拟数据
^{pr2}$

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java检查整数是0还是检查变量是null更好?   java Android Kotlin(初学者)使用File(),并从ACTION\u GET\u内容返回Uri   java JavaFx在“内部场景”和根场景之间切换   spring将XMLBean配置转换为java配置   java JPA HIBERNATE映射列两次(embeddedID和POJO)   c#单态模式模型在什么情况下适用?   java请求。getRemoteUser在特定时间后返回null?   spring boot中PUT api控制器的java my单元测试用例失败   java在字符串中互换地解析和替换值   java Android JNI在应用程序中检测到错误:调用JNI GetMethodID时出现挂起异常   JavaSpringDataMongo:使用非简单键持久化映射   爪哇玻璃鱼连接被拒绝   java如何在用户注册时发送特定电子邮件id的自动回复?   Java列表:实例化时和之后的赋值之间的差异