我的數據是這樣的 瓦爾 A(C)| B(/ c /)| C.c F | G9 K | S | V | S F | A 我想在字符「|」的最後一次出現之前獲取所有內容。在Stata,像如下: NewVar 瓦爾 A(C)| B(/ c /)| F | K | S | V | F | egen NewVar=ends(Var), punct(|) last trim
可以在最後一次出現字符「|」後
我正在使用Stata進行數據分析,但必須將其從包含變量標籤的SPSS中使用的數據集轉換爲.csv文件。但是,變量標籤在此過程中未導出到Stata。 我按照這個問題的建議(In SPSS, is it possible to export a dataset file to .CSV with the value names instead of the value numbers?),但這只是指的