Stata/設定
外觀
< Stata
- Stata 11 包含一個具有語法高亮功能的 do 檔案編輯器。
- 如果您沒有使用 Stata 11,您可能希望使用具有語法高亮功能的外部文字編輯器。外部文字編輯器列表在此處描述 (http://fmwww.bc.edu/repec/bocode/t/textEditors.html)
Stata 將資料載入到記憶體中。如果您正在處理大型資料集,您可能會收到以下錯誤訊息 沒有更多觀測值的可用空間. 在這種情況下,您只需要增加 Stata 使用的記憶體量。最大值取決於您的計算機。
. set mem 100m * gives 100 megabyte . set mem 1g * gives 1 gigabyte
在 Stata 12 中,這些命令不再需要,因為記憶體是自動管理的。每當您執行以下命令時,Stata 會通知您此更改set mem命令,使用以下訊息
set memory ignored.
Memory no longer needs to be set in modern Statas; memory adjustments are performed on the fly automatically.
如果您想了解更多資訊,只需鍵入 mem
. mem Total memory: 105M Memory in use: 6k 0% Room for 867k more observations Room for 570k more variables (4 byte)
- profile.do 在您每次開啟 Stata 時都會執行。它是一個簡單的 do 檔案,應該位於與 .exe (Windows) 或 .app (Mac OS) 檔案相同的目錄中。您可以定義您的 ado 檔案目錄並將它們儲存在 profile.do 中
*! profile.do sysdir set PERSONAL "/Applications/Stata/ado/personal/" sysdir set PLUS "/Applications/Stata/ado/plus/" sysdir set OLDPLACE "/Applications/Stata/ado/oldplace/" set mem 100m set more on, permanently
- query 顯示所有系統引數
- help limits 顯示所有限制(例如,最大觀測值數量、最大變數數量、字串的最大長度等)。
- sysdir 顯示所有 ado 目錄
. sysdir
STATA: /Applications/Stata/
UPDATES: /Applications/Stata/ado/updates/
BASE: /Applications/Stata/ado/base/
SITE: /Applications/Stata/ado/site/
PLUS: /Applications/Stata/ado/plus/
PERSONAL: /Applications/Stata/ado/personal/
OLDPLACE: /Applications/Stata/ado/oldplace/
- about 顯示有關您的 Stata 版本的資訊
. about
Intercooled Stata 9.2 for Macintosh
Born 20 Jul 2007
Copyright (C) 1985-2007
Single-user Stata for Macintosh perpetual license:
Serial number: --------
Licensed to: --------
- SSC 網站 : 一個包含使用者編寫的 Stata 命令的網站。
- ssc whatsnew : 一個顯示 SSC 中新內容的命令
- ssc des : 一個描述使用者編寫命令的命令。
. ssc des ivreg2
- ssc install : 一個從 SSC 安裝新命令的命令
. ssc install ivreg2
- ssc des a : 一個描述所有名稱以 'a' 開頭的 SSC 命令的命令
如果您想查詢新的 ado 檔案,只需使用 findit 命令。例如,如果您想查詢有關貧困的新命令,請鍵入
. findit poverty