zhao1198的个人博客分享 http://blog.sciencenet.cn/u/zhao1198

博文

[STATA]IFWINS: Stata module to subset a dataset by 'if exp' before subsetting by

已有 2745 次阅读 2009-9-14 17:38 |个人分类:Stata|系统分类:科研笔记


ifwins is a prefix command that runs most any Stata command that does not modify the dataset in memory (e.g. generate, replace, etc.). ifwins will have 'if' subset the dataset before 'in' subsets the dataset. This is the opposite of what happens when both 'if' and 'in' are used in the same Stata command. If you want to run a Stata command on a certain number of observations when a certain condition exists, use ifwins as a prefix to the desired Stata command


https://wap.sciencenet.cn/blog-285749-255574.html

上一篇:[STATA]HAIF: Stata module to compute Homoskedastic Adjustment Inflation Factors
下一篇:[STATA]DATAOUT: Stata module to export a dataset or tab-delimited file into vari
收藏 IP: .*| 热度|

0

评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-6-16 04:40

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部