search for: dlusdchf

Displaying 4 results from an estimated 4 matches for "dlusdchf".

2004 Mar 20
9
Operating on windows of data
I have a data set that is comprised of, for simplicity, a vector of numbers that I want to march across in overlapping windows of say 10 values each, computing a couple of values for each window. Is there a vectorized way to do this, or do I truly need to resort to looping--I think so? Any other clever thoughts? Thanks, Sean [[alternative HTML version deleted]]
2004 Feb 07
1
Subset function of lm() does not seem to work
...rying to exploit the "subset" feature, to make it use only a subset of the observations. My code is: ---------------------------------------------------------------------- A <- read.table(file="datafile.2", col.names=c("date","dlinrchf","dlusdchf","dljpychf","dldemchf")) # The file datafile.2 has 100 observations. # I want to do a regression using the first 25 only # Subset vector : the 1st 25 are on, the remaining 75 are off. window = c(rep(1,25), rep(0,75)) model <- lm(dlinrchf ~ dlusdchf + dljpychf...
2004 Feb 09
1
Subset function of lm(); "rolling regressions"
...he second from 2..26, etc. I want to make a vector of 75 different slopes obtained thusly. My code is: --------------------------------------------------------------------------- A <- read.table(file="datafile.2", col.names=c("date","dlinrchf","dlusdchf","dljpychf","dldemchf")) # The file datafile.2 has 100 observations. I want window width of 25. T=100 width=25 # Embark on the loop that will do rolling windows across the dataset. # Will build up a vector `beta' (of 75 elems) in the process. for (i...
2004 Feb 20
9
R: Including R plots in a Microsoft Word document
Greetings List, I am conducting some large simulations using R. As a result, I get many plots but I'm having some trouble with including some of them in a Microsoft Word document. Can any one tell me the easiest method of having copies of the R-graphs in the Word documents? Best regards Mahmoud [[alternative HTML version deleted]]