I have a problem regarding an Excel file that has missing values that are indicated with an asterisk (*).
If I use search and replace in Excel, Excel thinks that there are asterisks (*) in all the cells. So, this is not the way to get rid of the asterisks (*). When I import the Excel file in Stata, Stata thinks that this variable is string. But it is not possible to destring the variable, because of the asterisk (*). I tried to encode the variable, and then the data becomes 'blue'. The asterisks (*) remain in the data. Stata knows the values (like mean, etc.), but cannot recognize the missing values.
Can somebody help me with the missing values that are indicated with an asterisk (*) ? How can I get rid of these asterisks (*) such that Stata knows that these asterisks (*) are missing values?
Thanks in advance.
Related Posts with Replace missing values that are indicated with an asterisk (*)
importing and appending loopsDear all, I tried appending some files using the following codes. Both worked but there are some pr…
Change labels form another datasetHi Stataitians. I'm new in Stata. I'm trying to change the label of several variables. I have the d…
How to subtract within a column based on criteria from other columns?Hi, I have the following variables in my dataset: ID, group, nnid1, TRT, OUTCOME There are two gro…
Separating big string variablesDear All, I have downloaded the dataset from the scimago journal ranking website. The downloaded da…
How to get 95% Confidence Interval (CI) of the turning point of an inverted U-shaped curve with stata?Dear all, I have obtained an inverted U-shape relationship between independent variable X and depen…
Subscribe to:
Post Comments (Atom)
0 Response to Replace missing values that are indicated with an asterisk (*)
Post a Comment