strdate replaces a list of string date variables with a list of Stata numeric date variables having the same names, the same positions in the data set order, and the same variable labels (if present). The conversion is carried out using the Stata date() function. strdate is used when ...
To<statalist@hsphsun2.harvard.edu> SubjectRE: st: Re: replace a string variable DateMon, 9 May 2005 16:57:38 +0100 This makes it a little difficult to keep track of what has not yet been identified as OK. See my earlier posting for another way to do it. Nick n.j.cox@durham.ac...
>> >> http://www.stata.com/statalist/archive/2011-06/msg00393.html > > On Wed, Oct 17, 2012 at 3:02 PM, <redacted> wrote: > >>> I want to replace part of observations in the string variable to >>> missing values. For example, I want to replace "Pasir Mas" to either >>...
This option may be used only when generating one variable. missing specifies that observations containing variables with missing values not be eliminated from the estimation sample. Remarks For a thorough discussion of ml, see the third edition of Maximum Likelihood Estimation with Stata, (Gould, ...
Questa pagina è stata utile? Sì grazie Non proprio Cambia paese Copyright © 2024 Adobe. All rights reserved. Privacy Termini di utilizzo Preferenze sui cookie Typekit Non vendere o condividere le mie informazioni personali AdChoices 此Adobe 网站与您的位置不匹配 ...
To statalist@hsphsun2.harvard.edu Subject Re: st: Re: replace a string variable Date Mon, 9 May 2005 11:19:03 -0400what about replace vend = "STRYKER" if index(vend,"STRYKER") replace vend = "ZIMMER" if index(vend,"ZIMMER") replace vend = "SULZER" if index(vend,"SULZER") then...
To statalist@hsphsun2.harvard.edu Subject st: Replace one variable when other variable contains certain characters Date Mon, 19 Dec 2005 12:55:05 +0900Dear all, Suppose we have string variable Y, and we would like to replace variable X when variable Y contains certain characters such as "...
my dates go in as string variables and I can convert them into Stata dates using something like this: generate double diagdate2 = date(dx, "YMDhms") format %td diagdate2 Which gives my data a numeric value and applies some sort of variable label. I'm familiar with how to substract/ad...
hi, I have a fairly simple problem for which I am sure STATA has an easy solution but I can't seem to find it. I am hoping you can help me. Here is what I need to do: I have a string variable called company_name which has names like "microsoft ltd." What I need to do ...
FromPhil Clayton <philclayton@internode.on.net> Tostatalist@hsphsun2.harvard.edu SubjectRe: st: Is there a way to replace a variable with a missing value without knowing if it is numeric or string? DateFri, 26 Jul 2013 18:14:59 +1000...