以下 Stata 代码是什么意思 (x/max=.)?
What does the following Stata code mean (x/max=.)?
我不懂Stata,我需要知道下面的代码是什么意思。我知道 prtvtacy
得到 recode
d 到 1 如果它是 1 和 0 其他。但是 recode prtvtacy (66/max=.)
是什么意思?
*cyprus
tab prtvtacy
tab prtvtacy, nolab
recode prtvtacy (66/max=.)
recode winlose 0=1 if prtvtacy==1
这里是每行的内联注释。请注意,Stata 中的变量表示许多其他编程语言中最常称为列的内容。
*cyprus // <- This is a comment
tab prtvtacy // <- This shows the frequency of the variable prtvtacy
tab prtvtacy, nolab // <- Same as above, but shows numeric code instead of label
recode prtvtacy (66/max=.) // <- Any value in variable prtvtacy between 66 and the highest value is changed to missing value (.)
recode winlose 0=1 if prtvtacy==1 // <- Set variable winlose to 1 for observations where winlose is 0 and prtvtacy is 1
我不懂Stata,我需要知道下面的代码是什么意思。我知道 prtvtacy
得到 recode
d 到 1 如果它是 1 和 0 其他。但是 recode prtvtacy (66/max=.)
是什么意思?
*cyprus
tab prtvtacy
tab prtvtacy, nolab
recode prtvtacy (66/max=.)
recode winlose 0=1 if prtvtacy==1
这里是每行的内联注释。请注意,Stata 中的变量表示许多其他编程语言中最常称为列的内容。
*cyprus // <- This is a comment
tab prtvtacy // <- This shows the frequency of the variable prtvtacy
tab prtvtacy, nolab // <- Same as above, but shows numeric code instead of label
recode prtvtacy (66/max=.) // <- Any value in variable prtvtacy between 66 and the highest value is changed to missing value (.)
recode winlose 0=1 if prtvtacy==1 // <- Set variable winlose to 1 for observations where winlose is 0 and prtvtacy is 1