自製stata do file基礎模板
***************************************
** Check working directory **
***************************************
*這是一個自製模板,直接貼到do file就可以使用了
pwd
cd "C:\Users\wenra\Box Sync\2021_JF_files_LA_ISA_Merging_problems"
*設定位置
pwd
clear all
*清除所有stata暫存的的東西
cls
set more off
quietly log /* Reports log status */
local logon = r(status) /* Save status to local macro */
if "`logon'" == "on" {
log close
} /* If a log file is currently open, closing said log file */
log using "2021AACS.log", /// *有時候交作業會要求交log 檔案
replace text
/********************************************/
/* File Name: Jou Fei Huang- Stata.do */
/* Date: March 2, 2021 */
/* Author: Jou Fei Huang */
/* Input File:AB_W4_data.dta */
/********************************************/
Comments
Post a Comment