tag:thongke.info.vn,2008:VIE-Portal-Press:367040AEC117477AA5798EF7AB9F5E2AXử lý biến chữ (Stata) :: Thống kêThống kêVIE Portal ATOM Engine2023-12-20T12:36:23Ztag:thongke.info.vn,2008:VIE-Portal-Press:471FCA560B2E46DC80EC1B557250979FXử lý biến chữ (Stata)2012-06-29T11:56:56Z2012-06-28T16:49:32ZThống kê<span style="background-color: white; font-size: 12pt; font-family: 'Times New Roman', serif; line-height: 18px; ">Trong bộ số liệu định lượng có những biến được liệt kê dưới dạng chữ và phần mềm ta đang sử dụng không thể xử lý được dạng dữ liệu này. Vì vậy để có thể sử dụng được các thông tin này chúng ta cần mã hóa lại các biến dạng chữ thành biến mới hoặc biến đã có sẵn nhưng ở dạng số.</span><div><span style="font-family: 'Times New Roman', serif; font-size: 12pt; line-height: 18px; background-color: white; "><br></span></div><div><span style="font-family: 'Times New Roman', serif; font-size: 12pt; line-height: 18px; background-color: white; "><b><u>Syntax:</u></b></span></div><div><span style="font-family: 'Times New Roman', serif; font-size: 12pt; line-height: 18px; background-color: white; "><br></span></div><div><span style="background-color: white; "><i><span style="font-size: 12pt; line-height: 18px; font-family: 'Times New Roman', serif; "><span class="Apple-tab-span" style="white-space: pre; "> </span>replace</span></i></span><i style="background-color: white; "><span style="font-size: 12pt; line-height: 18px; font-family: 'Times New Roman', serif; "> [biến cũ]=[giá trị mới bằng số] if [biến cũ]= “biến chữ”.</span></i></div>