Displaying 20 results from an estimated 600 matches similar to: "Opps Correct Version of Holiday Regressor Perl Script"
2009 Dec 08
0
Holiday Gift Perl Script for US Holiday Dummy Regressors
##### BEGIN CODE ######
#!/usr/bin/perl
######
#
# --start, -s = The date you would like to start generating regressors
#--end, -e = When to stop generating holiday regressros
# --scope, -c = D, W for Daily or Weekly respectively (e.g. Does this week
have a particular holiday)
# --file, -f = Ummm where to write the output silly!
#
# **NOTE** The EOM holiday is "End of Month" for
2009 Dec 03
0
Problem with predict() and factors
I am working on a script that takes numeric performance indicators and runs
them against a series of regressors (dummy regressors, yes\no stuff via 0
and 1, e.g. Was is Christmas this week 0=no, 1=yes).
The script is as follows (Written as a function):
-- Begin Script --
doEnv <- function(HOUR,ENVNAME,REPORTNAME) {
library(RODBC)
library(forecast)
library("geneplotter")
2009 Jul 21
2
Odd coefficent behavior
Why are my coefficients getting appended with a 1? It borks a match I
do later against the original list that doesn't have the random 1
added to the end.
> linearModel[[1]]
Call:
lm(formula = modelSource ~ +UNITBUILD + UNITDB + ITBUILD + ITDB +
UATBUILD + UATDB + HOGANCODE + RCF + ReleaseST1 + ReleaseST2 +
ReleaseBLA + Small.Bank.Acquisitions + HLY.NewYear + HLY.MLK +
HLY.PRES +
2010 Jan 07
1
Drop a part of an array\list\vector?
I did have a verbose description of why but rather then make everyone's eyes
bleed with useless details I ask the following :)
To make a long story short: How can I make newmcReg[[i]]["PreIO308"] go
away in the following list... er vector... no wait array.... dataframe....
awww crap...
summary(newmcReg[[i]])
UNITBUILD UNITDB ITBUILD ITDB
Mode :logical
2012 Jan 15
3
I'm trying to relate what I know about Omega/Scriptindex with the actual data
James, thanks for the explanations. I misread the notes.
As an exercise, I'm trying to convert an existing project that currently
uses Scriptindex and Omega to direct Xapian API calls. I did a (I
think) complete dump of a document with
delve -r 565 -d database
and I see things like
subject='A typical subject'
with a corresponding set of terms like
Sa Stypical Ssubject
Which
2012 Apr 04
0
crosstabs and histograms with flexible binning of dates
Hi,
First, thank you to Duncan Mackay for getting me started processing dates
with R. Unfortunately, I need to do a little more than I initially expected.
I have 5K lines of data that look like this:
ID AREA DATE
0001 Center 2010-10-15
0002 Center 2010-01-02
0003 NorthWest 2010-02-05
0004 SouthWest 2010-05-11
I would like to create a script to create crosstabs like
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-07-04
2006 Jan 28
1
Method for returning a random date between two dates
Hi,
I''m trying to create a method to return a random date within a range.
So far, I''ve come up with this...
require ''parsedate''
def random_date (a, b)
adate = ParseDate.parsedate(a)
bdate = ParseDate.parsedate(b)
atime = Time.local(*adate)
btime = Time.local(*bdate)
atime + (rand * (atime - btime) )
end
...and it doesn''t seem to
2005 Sep 06
1
US Date Handling in Rails
My application is built on Rails and MySQL. It will only be accepting US
formatted dates as input, however both Rails and MySQL are oriented around
ISO the format. I know I can convert a good portion of the entries using
ParseDate::parsedate but it does not appear this is how the conversion is
taking place when data is being transferred from the params hash into model
members.
Say I have a field
2012 Mar 20
0
[LLVMdev] Runtime linker issue wtih X11R6 on i386 with -O3 optimization
I was told that my writeup lacked an example and details so I reproduced
the code that X uses and I was able to boil down the issue to a couple
of lines of code. Sorry again for the length of this email.
Code was compiled on OpenBSD with clang 3.0-release.
========================================================================
With -O0 which works as X expects:
2014 Feb 19
2
[LLVMdev] [lldb-dev] How is variable info retrieved in debugging for executables generated by llvm backend?
Sorry, this is the attachment.
2014-02-19 15:08 GMT+08:00 æšćć <triple.yang at gmail.com>:
> Thank you.
>
> Here is an example and the attchment contains extra files including object
> file and executable file.
> I want to print for example the value of "a", but lldb command "frame
> variable a" displays "0" and so does "b", and
2006 May 21
3
Using ParseDate in for loop
Hi,
I''m trying to use ParseDate within a for loop but I get this error:
can''t dup NilClass
Any suggestions for making this work?
Thanks,
-Jason
2006 Jul 26
0
render :update do | page | to modify a css class string...
In my booking/_form.rhtml, I have 2 <input text fields>
startingdate (selction from unobstrusive calendar ) and endingdate
<div>
<label for="startdate">Booking Start Date</label><br />
<%= text_field_tag(''startdate'', @startdate, {:class =>
@startdateclass, :readonly => "readonly", :maxlength => "25"}
2006 Jun 21
0
SQLServer Timestamp parsing problem in sqlserver_adapter.rb
So, I''ve used Rails to tie into a legacy system which is on SQL Server
2000 with a required timestamp field, DBTimeStamp. The field is defined
in SQL Server as type timestamp, but when rails is pulling it in, it
appears it may be casting to a datetime format. So, when I try to read or
write to the field, it gives me a parsing error:
NoMethodError: private method
2006 Jun 23
0
Multiparameter error
Hello,
What''s the best way to deal with dates prior to 1970 using Rails. I''ve
seen some suggestions for hacks to fallback to the Date class if Time
fails, but I''m not sure exactly how to implement them.
This is from the wiki
require ''date''
# It''s necessary to do this, because Time doesn''t
# support dates before 1970...
class
2005 Feb 19
0
[Error] Using validates_presence_of for datetime field causes parse error?
Hi Everyone -
I''ve got an odd sort of error when I try to use validates_presence_of
for a MySQL ''datetime'' field. Here''s the relevant portion of the table
definition:
mysql> describe student_surveys;
+---------------------+---------------------+------+-----
+---------------------+----------------+
| Field | Type | Null |
2010 Jan 12
0
[Solved][Code Snippets] Dropping Empty Regressors
To make a long story short I was doing some in-sample testing in which some
dynamically created regressors would end up either all true or all false
based on the validation portion. In my case a new mainframe configuration
(this is a crappy way to handle a level shift but I do what I can.) So here
is the code snippet that finally let me pre-check my regressors and drop any
of them that were all
2006 Jan 16
3
String date parsing
Does anyone know if a Ruby package has been written to handle
functionality similar to php''s strtotime(). I''m looking for something
that can parse almost any string (such as "1 day ago", "+1 week",
"last tuesday") into a timestamp.
I''ve played with ParseDate, but it doesn''t seem to do what I need. Any
suggestions?
Derek
2006 Jul 26
8
change text_field_tag class
in my booking / _form I have the following input fields : (startdate and
endate)
<div>
<label for="startdate">Booking Start Date</label><br />
<%= text_field_tag(''startdate'', @startdate, {:class => @startdateclass,
:readonly => "readonly", :maxlength => "25"} ) %>
<%= observe_field("startdate",
2012 Jan 30
1
Quantum scalar i40 tape partitions
Hi All,
I have a Quantum scalar i40 tape library. I need to configure it to TWO tape partition libraries, e.g., library_a and library_b, so that each library has its own tape drive. Then connect this physical tape library to two different CentOS servers so that each server can see its own media changer and tape drive. I once had a successful configuration on one host but NOT on the other. One