Hi there,
I am encountering a problem with some data I am working on in Stata. Here's the story. I have a column (a string variable) that has many, many cells that contain absolutely no characters. I would like to be able to identify the cells that actually do contain at least some data and generate a new variable that would take the value of 1 if this is the case. Does anyone know how to do this in Stata? In Excel I would use the following formula to solve this problem: =IF(A1<>””,1,0 Unfortunately, I'm not sure how to address this issue in Stata. Anybody have some advice for me?
Thanks in advance for your help!
Matt
I am encountering a problem with some data I am working on in Stata. Here's the story. I have a column (a string variable) that has many, many cells that contain absolutely no characters. I would like to be able to identify the cells that actually do contain at least some data and generate a new variable that would take the value of 1 if this is the case. Does anyone know how to do this in Stata? In Excel I would use the following formula to solve this problem: =IF(A1<>””,1,0 Unfortunately, I'm not sure how to address this issue in Stata. Anybody have some advice for me?
Thanks in advance for your help!
Matt