search for: basedate

Displaying 6 results from an estimated 6 matches for "basedate".

2009 Dec 08
0
Holiday Gift Perl Script for US Holiday Dummy Regressors
...rint "Last Day in Month: ",UnixDate(ParseDate("last day in JAN 2004"),"%m/%d/%Y"),"\n"; #HEADER OUTpUT print "Date,HLY-NewYear,HLY-MLK,HLY-PRES,HLY-MEMORIAL,HLY-J4,HLY-LABOR,HLY-COLUMBUS,HLY-VETS,HLY-THANKS,HLY-XMAS,HLY-ELECT,HLY-PATRIOT,EOM\n"; $baseDate=$startDate; if ($scope eq "d"){ while(Date_Cmp($baseDate,$endDate)<0) { print UnixDate($baseDate,"%m/%d/%Y"), ","; if(holidayCheck($baseDate) eq "New Year's Day"){print "1,"} else {print "0,"}; if(holidayCheck($baseDate) eq "...
2009 Dec 08
0
Opps Correct Version of Holiday Regressor Perl Script
...OUTFILE "Last Day in Month: ",UnixDate(ParseDate("last day in JAN 2004"),"%m/%d/%Y"),"\n"; print OUTFILE "Date,HLY-NewYear,HLY-MLK,HLY-PRES,HLY-MEMORIAL,HLY-J4,HLY-LABOR,HLY-COLUMBUS,HLY-VETS,HLY-THANKS,HLY-XMA S,HLY-ELECT,HLY-PATRIOT,EOM\n"; $baseDate=$startDate; if ($scope eq "d"){ while(Date_Cmp($baseDate,$endDate)<0) { print OUTFILE UnixDate($baseDate,"%m/%d/%Y"), ","; if(holidayCheck($baseDate) eq "New Year's Day"){print OUTFILE "1,"} else {print OUTFILE "0,"}; if(holidayCh...
2008 May 12
1
help with calculating the differences between dates
Dear list, How can I calculate the difference in days between the eventdate and basedate in the below dataset? id basedate outcome.3 eventdate daydiff 1 1001 1999-09-28 2 1999-10-01 3 2 1002 1999-09-22 1 3 1003 2000-01-19 1 4 1004 2004-01-25 2 2004-02-03 9 5 1005 2005-08-11 1 6 1006 2000...
2012 Apr 04
0
crosstabs and histograms with flexible binning of dates
...39;m guessing there are useful libraries and more elegant approaches. Any pointers would be appreciated. import(foreign) # LOAD FILE #parcels=read.dbf() #depending on source file parcels=read.delim("~/Projects/GIS_DATA/Parcels_NSP_BlockGroup.txt") attach(parcels) # DEFINE BINNING basedate=as.Date("2011/05/11") currentdate=basedate interval=3 #width of interval in months. 3 = quarterly num_intervals=5 #how many intervals to include after basedate for (i in c(1:num_intervals)) { startdate=currentdate enddate=seq(startdate,by="month",length=interval)[interval]...
2003 Jun 19
1
Import time series data with uneven dates
I am trying to import a file of daily index closing prices in business time which excludes weekends and holidays so deltat is not constant. My file looks like the following: date close 2003.0055 47.05 2003.0082 45.71 2003.0164 43.45 2003.0192 42.96 2003.0219 44.56 2003.0247 42.99 2003.0274 42.28 2003.0356 41.74 etc. >From what I saw in the EuStockMarkets file, it appears
2011 Jan 26
2
applying a set of rules to each row
All, I would like to apply a set of rules to each row of the sample data set below. The rule sets are the guidelines for determining an individual's date for retirement eligibility. The rules are found in this document, http://www.opm.gov/feddata/RetirementPaperFinal_v4.pdf. I am only interested in the top two categories for retirement eligibility, the CSRS and FERS plans. The data set has