楼主: Lisrelchen
1575 2

[学习资料] Jon Peck: SPSS Important Update [推广有奖]

  • 0关注
  • 62粉丝

VIP

院士

67%

还不是VIP/贵宾

-

TA的文库  其他...

Bayesian NewOccidental

Spatial Data Analysis

东西方数据挖掘

威望
0
论坛币
50057 个
通用积分
79.6987
学术水平
253 点
热心指数
300 点
信用等级
208 点
经验
41518 点
帖子
3256
精华
14
在线时间
766 小时
注册时间
2006-5-4
最后登录
2022-11-6

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
A new extension command for SPSS Statistics, STATS IF, has been uploaded to the SPSS Community website. This command allows you in essence to apply IF logic to procedure stream execution.  For example, you could write
STATS IF CONDITION1="spss.GetCaseCount()> 100" CONDITION2="True"
/SYNTAX1
"DESC ALL."
"REGRESSION"
"  /DEPENDENT salary"
"  /METHOD=ENTER jobtime educ."
/SYNTAX2
"FREQ ALL.".

It would run DESCRIPTIVES and REGRESSION if there are more than 100 cases and FREQUENCIES otherwise.

It also includes fine-grained error control.  For example, you could use it to log all serious errors to an external file for review and respond to errors dynamically.

The traditional syntax lines must be quoted so that they can be controlled by STATS IF.
The conditions must be Python expressions with inputs from apis as above and variables previously constructed in Python program blocks.

This command even supports conditional macro definition, so it offers an interesting way of letting macros adapt to the data and metadata in a way that is not possible with macro alone (brain damage alert).

All the functionality of this extension could be done with pure Python Statistics code, but this command may be more convenient in many cases.

STATS IF requires the Python Essentials and at least version 18 of Statistics. It can be downloaded from within Statistics using the Utilities menu in version 22. For older versions you can download it from the SPSS Community website (
[url=]www.ibm.com/developerworks/spssdevcentral[/url]) in the Extension Commands collection.



Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
peck@us.ibm.com
phone: 720-342-5621

二维码

扫码加我 拉你入群

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

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

关键词:IMPORTANT update import porta SPSS Community execution procedure command essence

本帖被以下文库推荐

沙发
骑士sss 发表于 2014-5-26 20:04:55 来自手机 |只看作者 |坛友微信交流群
Lisrelchen 发表于 2014-5-23 01:11
A new extension command for SPSS Statistics, STATS IF, has been uploaded to the SPSS Community websi ...
更新包?

使用道具

藤椅
tamtam7010 发表于 2014-7-13 05:54:52 |只看作者 |坛友微信交流群
thanks for your sharing

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-12 06:11