SPSS 逻辑回归

发布于 2024-10-09 23:01:54 字数 110 浏览 0 评论 0原文

我想知道是否有办法获得许多单协变量逻辑回归。由于缺少值,我想对所有变量执行此操作。我想要进行多重逻辑回归,但缺失值太多。我不想为数据库中的每个变量计算逻辑回归,有什么自动方法吗?

非常感谢!

I'm wondering if there is a way to get many single covariate logistic regression. I want to do it for all my variables because of the missing values. I wanted to have a multiple logistic regression but I have too many missing values. I don't want to compute a logistic regression for each variable in my DB, is there any automatic way?

Thank you very much!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一瞬间的火花 2024-10-16 23:01:54

您可以使用 SPSS 语法对其进行编码。

例如:

LOGISTIC REGRESSION VARIABLES F2B16C -- Dependent variable


  /METHOD=BSTEP -- Backwards step - all variables in then see what could be backed out

  XRACE BYSES2 BYTXMSTD F1RGPP2 F1STEXP XHiMath  -- Independent variables

  /contrast (xrace)=indicator(6)  -- creates the dummy variables with #6 as the base case

  /contrast (F1Rgpp2)=indicator(6)

  /contrast (f1stexp)=indicator(6)

  /contrast (XHiMath)=indicator(5)

  /PRINT=GOODFIT CORR ITER(1) 

  /CRITERIA=PIN(0.05) POUT(0.10) ITERATE(20) CUT(0.5).`

如果您这样做,您还可以告诉它在适当的情况下保留缺失值的记录。
add /MISSING=INCLUDE

如果有人知道包含缺失值的含义的良好解释,我很想听听。

You can code it using SPSS syntax.

For example:

LOGISTIC REGRESSION VARIABLES F2B16C -- Dependent variable


  /METHOD=BSTEP -- Backwards step - all variables in then see what could be backed out

  XRACE BYSES2 BYTXMSTD F1RGPP2 F1STEXP XHiMath  -- Independent variables

  /contrast (xrace)=indicator(6)  -- creates the dummy variables with #6 as the base case

  /contrast (F1Rgpp2)=indicator(6)

  /contrast (f1stexp)=indicator(6)

  /contrast (XHiMath)=indicator(5)

  /PRINT=GOODFIT CORR ITER(1) 

  /CRITERIA=PIN(0.05) POUT(0.10) ITERATE(20) CUT(0.5).`

If you do that you can also tell it to keep records with missing values where appropriate.
add /MISSING=INCLUDE

If anyone knows of a good explanation of the implications of including the missing values, I'd love to hear it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文