楼主: ddd524
505 0

[问答] ns函数中的交互作用项问题 [推广有奖]

  • 0关注
  • 0粉丝

本科生

34%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0.6275
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
245 点
帖子
8
精华
0
在线时间
168 小时
注册时间
2020-1-14
最后登录
2023-3-2

楼主
ddd524 发表于 2022-8-23 20:35:54 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
求问有大神用过geeglm中的ns函数吗,我想用5个节点的自然立方样条建立一个交互作用模型,模型是这样的:
geeglm(falseteeth~ns(age,knots=c(73,81,87,92,100))*female


出来的结果是每个节点和female的交互项都有一个p值:
ns(age, knots = c(73, 81, 87, 92, 100))1:female 0.163049   
ns(age, knots = c(73, 81, 87, 92, 100))2:female 0.054540 .  
ns(age, knots = c(73, 81, 87, 92, 100))3:female 0.011970 *  
ns(age, knots = c(73, 81, 87, 92, 100))4:female 0.067661 .  
ns(age, knots = c(73, 81, 87, 92, 100))5:female 0.000485 ***
ns(age, knots = c(73, 81, 87, 92, 100))6:female 0.007331 **


我想问一下可不可以求一个总的样条与性别交互项的p值,我在一篇文献中《Trends in Prevalence of Chronic Kidney Disease in the United States》看到作者只求了一个p值,统计方法的部分他只介绍了“To test for interactions of the temporal trends across categories (e.g., age) we tested the combined interaction of the spline terms with the category of interest.”,但是我不知道是怎么求的 combined interaction
二维码

扫码加我 拉你入群

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

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

关键词:交互作用 interactions interaction categories prevalence

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-21 06:31