search for: quantpm

Displaying 9 results from an estimated 9 matches for "quantpm".

2005 Oct 31
6
getting last 2 charcters of a string, other "text" functions?
I wish to obtain the right-most n characters of a character string? What is the appropriate function? --------------------------------- [[alternative HTML version deleted]]
2005 Dec 19
3
given a mid-month date, get the month-end date
I have a vector of dates. I wish to find the month end date for each. Any suggestions? e.g. For 12/15/05, I want 12/31/05, For 10/15/1995, I want 10/31/1995, etc __________________________________________________ [[alternative HTML version deleted]]
2005 Oct 11
6
adding 1 month to a date
Within an R dataset, I have a date field called “date_”. (The dates are in the format “YYYY-MM-DD”, e.g. “1995-12-01”.) How can I add or subtract “1 month” from this date, to get “1996-01-01” or “ “1995-11-01”. --------------------------------- [[alternative HTML version deleted]]
2005 Nov 22
1
running out of memory while running a VERY LARGE regression
I am running a VERY LARGE regression (many factors, many rows of data) using LM. I think I have my memory set as high as possible. ( I ran "memory.limit(size = 4000)") Is there anything I can do? ( FYI, I "think" I have removed all data I am not using, and I "think" I have only the data needed for the regression loaded.) Thanks.
2005 Oct 12
2
functions available for use with aggregate?
What are the functions available for use with “aggregate”? Where can a reference to them be found? --------------------------------- [[alternative HTML version deleted]]
2005 Oct 12
1
Correlation, by date, of two variables?
I have a dataset with three variables: date, var1, var2 How can I calculate the correlation, by date, between var1 and var2? e.g. date var1 var2 1/1/2001 5 4 1/1/2001 8 5 1/1/2001 9 7 2/1/2001 7 2 2/1/2001 2 1 2/1/2001 4 6 3/1/2001 3 5 3/1/2001 4 3 3/1/2001 6 9 3/1/2001 7 -1 the results I want: 1/1/2001
2005 Nov 01
1
percent rank by an index key?
What is the easiest way to calculate a percent rank “by” an index key? Foe example, I have a dataset with 3 fields: Year, State, Income , I wish to calculate the rank, by year, by state. I also wish to calculate the “percent rank”, where I define percent rank as rank/n. (n is the number of numeric data points within each date-state grouping.) This is what I am
2005 Dec 13
2
creating a subset of a dataset using ifelse statement?
I am using R in a Microsoft Windows environment. I have a dataset called “mp1b”. I have a variable called h. h can take a value from -1 to 5. If h <1, I want to create a new dataset called mp2 that is the same as mp1b: “mp2<-mp1b” If h > 0, I want to set create a dataset mp2, where I limit the original dataset to those where mp1b$group = =h. similar to:
2005 Dec 20
3
transpose a matrix?
I have a data set in the following format: x<-data.frame(id=c(‘a’,’b’,’c’),’2005-01-15’=c(100,225,425), ’2005-02-23’=c(1100,2325,4525)) > x id X2005.01.15 X2005.02.23 1 a 100 1100 2 b 225 2325 3 c 425 4525 I want: id a b c X2005.01.15 100 225 425 X2005.02.23 1100