[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: set the date

From   STATA Dndee <>
Subject   st: set the date
Date   Wed, 9 Apr 2008 21:27:29 +0100 (BST)

I am new to STATA
I have 2 variables and want to set them as date with
as in the following:

1-Var1- Storage type str8, display format 0.9s. It has
month and year only like: 06/2005 . I want to assign
the day for it then set the day at 15 of each month :

2- Var2- Storage type double, display format %td and
writen like 26Nov2005. I want this to set it as date
and actualy don't know what double means.

3- Then I have to change them to numeric (var1n,
var2n) and substracte them: var3=var2n-var1n.

Sorry for such a simple question but I need help and
your reply is very much appreciated.


Yahoo! For Good helps you make a difference

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index