支持回看,所有课程可以随时购买观看。 Note: 部分课程的资料,PPT 等可以前往连享会-直播课主页查看,下载。 连享会 - 文本分析与爬虫 - 专题视频 主讲嘉宾:司继春 || 游万海 项目介绍 史上最全的 Stata 外部命令一览,可以在线查看帮助文件。 Source:Archive of user-written Stata packages 导...
st_local()Obtain strings from and put strings into Stata macros st_macroexpand()Expand Stata macros in string st_matrix()Obtain and put Stata matrices st_numscalar()Obtain values from and put values into Stata scalars st_nvar()Numbers of variables and observations ...
. foreach p in R S-Plus SAS SPSS Stata others { /* loop over responses */ . local P : subinstr local p "-" "" . gen byte q1_`P' = 0 . forval i = 1/6 { /* loop over existing variables */ . qui replace q1_`P' = q1_`P' + (strpos(q1_`i',"`p'") > 0) . ...
S458811 DICT: Stata module to loop over multiple arguments byDaniel Alves Fernandes S458810 MULTIDENSITY: Stata module for kernel density estimation for many variables or groups byNicholas J. Cox S458809 GCROBUSTVAR: Stata module to compute a VAR-based Granger-causality Test in the Presence of ...
foreach Loop over items forvalues Loop over consecutive values frame post Post results to dataset in another frame fvexpand Expand factor varlists gettoken Low-level parsing H2O intro Introduction to integration with H2O if if programming command include Include commands from file Java intro Introducti...
find module to find matching strings across files in the current directory tssc install find finddup module to find non-unique values or observations tssc install finddup findname module to list variables matching name patterns or other properties tssc install findname findsysmis module to ...
S458811 DICT: Stata module to loop over multiple arguments by Daniel Alves Fernandes S458810 MULTIDENSITY: Stata module for kernel density estimation for many variables or groups by Nicholas J. Cox S458809 GCROBUSTVAR: Stata module to compute a VAR-based Granger-causality Test in the Presence ...
Loop over a variable list (varlist): data new(drop= i); set new; array raymond {4} var1 var2 var3 var4; do i = 1 to 4; if raymond{i} = 99 then raymond{i} = . ; end; run; Check out this array example in the SAS programming examples page. foreach i of varlist var1 ...
Python Version - Loop Through Levels Of A Categorical import pandas as pd df = pd.read_stata('http://www.stata-press.com/data/r15/auto2.dta') # Use the repair record categorical as an example for lev in df['rep78'].unique(): # Preform any function specifc to each lev (summary ...
dict module to loop over multiple arguments tssc install dict did_multiplegt module to estimate sharp Difference-in-Difference designs with multiple groups and periods tssc install did_multiplegt didq module to compute treatment effects under alternative Parallel-q assumptions tssc install didq difd...