由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - Help with STATA macro
相关主题
一个proc format的问题SAS、Stata与SPSS的比较 (ZZ)
SAS base 87% pass todaybase 和advance 考试的体会
什么时候r里兴用=赋值的1 week for SAS Base——算是应试体会吧:)
SAS question[合集] 1 week for SAS Base——算是应试体会吧:)
有用过ESS的吗?统计软件consulting怎么收费比较合适?
website for survival analysis in stata求教一个sas或STATA 画95%CI的问题!
SAS Starter Kit求助 stata xtreg
Re: Where to download STATA?辅修stats或biostats的问题
相关话题的讨论汇总
话题: name1话题: macro话题: variable话题: stata话题: string1
进入Statistics版参与讨论
1 (共1页)
b******s
发帖数: 325
1
Can you tell me if there is a way to write a STATA macro that takes a few
arguments? What I want to do is:
macro_A(name1, name2, string1, name3)
gen name1=name2
label variable name1 string1
label values name1 name3
drop name2
This macro takes a variable named “name2” and creates a new variable named
“name1” from it. Then it assigns a variable label “string1” to the
newly created variable. String1 can be any string such as “Number of
children in the household”. Then it assigns the new variable a
1 (共1页)
进入Statistics版参与讨论
相关主题
辅修stats或biostats的问题有用过ESS的吗?
[合集] 1 week for SAS Base——算是应试体会吧:)website for survival analysis in stata
关于R的优劣,与其他软件的比较SAS Starter Kit
新手求教关于SAS STATARe: Where to download STATA?
一个proc format的问题SAS、Stata与SPSS的比较 (ZZ)
SAS base 87% pass todaybase 和advance 考试的体会
什么时候r里兴用=赋值的1 week for SAS Base——算是应试体会吧:)
SAS question[合集] 1 week for SAS Base——算是应试体会吧:)
相关话题的讨论汇总
话题: name1话题: macro话题: variable话题: stata话题: string1