楼主: 18174715760
597 0

[回归分析求助] Logit回归交互效应计算 [推广有奖]

  • 0关注
  • 0粉丝

本科生

25%

还不是VIP/贵宾

-

威望
0
论坛币
7 个
通用积分
0.8141
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
3171 点
帖子
51
精华
0
在线时间
89 小时
注册时间
2022-3-8
最后登录
2025-4-25

楼主
18174715760 发表于 2022-11-5 12:24:26 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
最近要处理logit回归的交互效应,因变量是二分类的dummy,自变量有分类变量也有数值型变量,我看网上有说做分类型变量的回归要在变量名前面加“i.”,我加上后跑logit函数没有问题(第一条代码),但是跑inteff函数就报错了:factor-variable and time-series operators not allowed,然后我尝试将“i.”去掉,还是报错:“variable BathroomsIsCov19 not found”,说找不到交互项,这要咋办呀?球球了



  1. logit Alive NumberofReviews Bathrooms MaxGuests ResponseRate i.AirbnbSuperhost MinimumStay NumberofPhotos i.InstantbookEnabled i.ExactLocation OverallRating i.PetsAllowed YearsSinceOpen i.Kitchen i.Breakfast i.Elevator i.AllowsSmoking i.Washer i.LaptopFriendly i.LongTermStaysAllowed i.FirstAidKit i.AccommadationType1 i.AccommadationType2 i.IsCov19 i.ListingTypeN i.CancellationPolicyN i.ParkingN


  2. . inteff Alive Bathrooms i.IsCov19 Bathroomsi.IsCov19 NumberofReviews MaxGuests ResponseRate i.AirbnbSuperhost MinimumStay NumberofPhotos i.InstantbookEnabled i.ExactLoc
  3. > ation OverallRating i.PetsAllowed YearsSinceOpen i.Kitchen i.Breakfast i.Elevator i.AllowsSmoking i.Washer i.LaptopFriendly i.LongTermStaysAllowed i.FirstAidKit i.Acco
  4. > mmadationType1 i.AccommadationType2 i.ListingTypeN i.CancellationPolicyN i.ParkingN
  5. factor-variable and time-series operators not allowed

  6. . inteff Alive Bathrooms IsCov19 BathroomsIsCov19 NumberofReviews MaxGuests ResponseRate AirbnbSuperhost MinimumStay NumberofPhotos InstantbookEnabled ExactLocation Over
  7. > allRating PetsAllowed YearsSinceOpen Kitchen Breakfast Elevator AllowsSmoking Washer LaptopFriendly LongTermStaysAllowed FirstAidKit AccommadationType1 AccommadationTy
  8. > pe2 ListingTypeN CancellationPolicyN ParkingN
  9. variable BathroomsIsCov19 not found
复制代码


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:logit 交互效应 Log cancellation time-series

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-8 10:19