similar to: Calcuting returns

Displaying 20 results from an estimated 100 matches similar to: "Calcuting returns"

2011 Jan 07
1
Calculating Returns : (Extremely sorry for earlier incomplete mail)
Dear R forum helpers, I am extremely sorry for the receipt of my incomplete mail yesterday. There was connectivity problem at my end and so I chose to send the mail through my cell, only to realize today about the way mail has been transmitted. I am again sending my complete mail through regular channel and sincerely apologize for the inconvenience caused. ## Here is my actual mail Dear R
2011 Jan 07
1
Currency return calculations
Dear sir, I am extremely sorry for messing up the logic asking for help w.r.t. my earlier mails   I have tried to explain below what I am looking for.     I have a database (say, currency_rates) storing datewise currency exchange rates with some base currency XYZ.   currency_rates <- data.frame(date = c("12/31/2010", "12/30/2010", "12/29/2010",
2011 Jan 07
0
Odp: Currency return calculations
My mistake sir. I was literally engrossed in my stupid logic, and while doing so, overlooked the simple and very effective solution you had offered. Sorry once again sir and will certainly try to be very careful in future. Thanks again and have a great weekend sir. Regards Amelia --- On Fri, 7/1/11, Petr PIKAL <petr.pikal@precheza.cz> wrote: From: Petr PIKAL
2008 Mar 25
3
Output of order() incorrectly ordered?
Hello, I have a data frame consisting of four columns and would like to sort based on the first column and then write the sorted data frame to a file. > df <- read.table("file.txt", sep="\t") where file.txt is simply a tab-delimited file containing 4 columns of data (first 2 numeric, second 2 character). I then do, > df_ordered <- df[order(df$V1), ] OR,
2004 Sep 16
1
ERROR[16384]: chan_h323.c:1987 load_module: Gatekeeper registration failed
I'm trying to configure Chan_H323 to register with GnuGK... without success... i've failed finding sample configurations. I'd greatly appreciate anyone who can provide sample config of H323.conf and gnugk.ini I am tyring to configure Asterisk as a neighbor in GnuGK. I'm always getting this error on Asterisk. ERROR[16384]: chan_h323.c:1987 load_module: Gatekeeper registration
2005 Sep 09
0
Transferred calls dropping out of MeetMe
I'm taking inbound calls on an * server, then transferring them to a second * server where they join a MeetMe conference. If I have 'notransfer=yes' set on the first * server it works fine, but if I allow the transfer (call then shifts to be between the DID provider and the second server), the call is dropped 3-5 minutes later. There is no firewall on my end, and the two
2010 May 18
25
Very serious performance degradation
Hi, I''m running Opensolaris 2009.06, and I''m facing a serious performance loss with ZFS ! It''s a raidz1 pool, made of 4 x 1TB SATA disks : zfs_raid ONLINE 0 0 0 raidz1 ONLINE 0 0 0 c7t2d0 ONLINE 0 0 0 c7t3d0 ONLINE 0 0 0 c7t4d0 ONLINE 0 0
2004 Oct 27
2
Random number
Dear R- User I created two random number sets using rnorm function and calcuted their respective means. However now I would like to randomly replace some values with NA. Thus create my own test data. Any help or suggestions on this ? Also wanted to confirm when multiplying two random number vectors x am y by matrix..is this how i do it. A is the matrix z <- c(x,y)
2004 Dec 01
2
chisq.test probabilities method unclear
Hi list, i've got a question about the chisq.test function. in the use of the "given probabilities" method (p= ...), normally there should be typed in probabilities in the range of 0 to 1 with the absolute sum of 1.0 (r-help) But it is possible to use probabilities > than 1. or the sum <1.! without any warning message Ok, now the question, what does r calcutate in these
2008 Feb 28
1
problem of subscript value from vector and list
Hi, everyone I got some problems when trying to subscript the value of vector and list, by using calculated indices. Here is the vector I am generated lon<-rep(0,886);lat<-rep(0,691) for (i in 1:886){ lon[i]<-112+0.05*(i-1) } for (i in 691:1){ lat[i]<--44.5+0.05*(691-i) } For a given location of lon(xp) and lat(yp), I would like to calculate the position of them,
2011 May 18
1
assign $y of predict() function output to variable
Hello R-help Below is the output from the predict() function. How can I assign $y to a variable. >predict(function,df2) $x        V1 1   36.28 2   34.73 3   33.74 4   69.87 5   58.88 6   89.44 7   43.97 8   41.94 9   33.34 10  38.47 11  35.16 12  42.94 13  46.76 14  53.24 15  52.43 16  50.40 17  34.42 18  33.22 19  33.24 20  39.60 21  39.32 22  44.71 23  54.03 24  47.48 25  35.42 26  34.78
2012 Apr 12
1
Seeking help with LOGIT model
Dear all, I am fitting a LOGIT model on this Data........... Data <- structure(c(1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 1, 0, 47, 58, 82, 100, 222, 164, 161, 70, 219, 81, 209, 182, 185, 104, 126, 192, 95, 245, 97, 177, 125, 56, 85, 199, 298, 145, 78, 144, 178, 146, 132, 98, 120, 148, 123, 282, 79, 34, 104,
2008 Jun 09
1
Student Distribution and Funtion qt
Hello, I am trying to calculate and plot mean and confidence intervall for a set of data. This is the code that I am currently using: means <- sapply(data, mean, na.rm=TRUE) n <- sapply(data,length) stdev <- sqrt(sapply(data, var, na.rm=TRUE)) ciw <- qt(0.98, n) * stdev / sqrt(n) par(mgp=c(2,0.6,0), las=2, fin=c(7,3), mai=c(1,0.5,0.2,0.2), cex=0.8) plotCI(x=means, uiw=ciw,
2012 Nov 19
6
loop to subtract arrays / error
Hi everyone, I am having trouble with creating a loop to subtract arrays. In R, this is what I have done: > Vobsr <- read.csv("Observed_Flow.csv", header = TRUE, sep =",") # see data > below > Vsimr <- read.csv("1000Samples_Vsim.csv", header = TRUE, sep =",") # see > data below > Vobsr <- as.matrix(Vobsr[,-1]) # remove column 1 from
2004 Jan 08
2
Sweave & xtable
I am just starting to learn Sweave (really neat tool). I am pretty early in the learning curve (I had to think a moment ago whether a # or % was the appropriate comment character). I have successfully incorporated simple graphics and outputs, but am having trouble getting a latex (xtable) table to function properly. Latex is seemingly treating the xtable code as input or verbatim text. That
2012 Aug 07
2
Passing arguments to a function within a function ...
Hallo Everybody How do you specify arguments for a function used within another function? Here is my problem: I am reconstructing a calculator for the burden of disease due to air pollution from publications and tools published by the WHO. The calculations make use of published dose-response relationships for particular health end-points. This is then applied to populations with known or
2008 Mar 28
1
bwlimit on rsync locally
Does "bwlimit" option really work on rsync locally? We have one type of harddisk and want to slow down rsync I/O on disk because I don't want the disk head gets too hot. While I'm trying to use --bwlimit option, it looks the rsync speed was slowed down, but iostat is not improved at all. In both case the block written speed is increased by the same amount. How could I really
2012 Nov 18
0
subtract multiple columns from single column for Nash Sutcliffe efficiency
Hi everyone, I am having trouble using my own data in the Nash-Sutcliffe efficiency (NSE) function. In R, this is what I have done: Vobsr <- read.csv("Observed_Flow.csv", header = TRUE, sep =",") # see data below Vsimr <- read.csv("1000Samples_Vsim.csv", header = TRUE, sep =",") # see data below Vobsr <- as.matrix(Vobsr[,-1]) # remove column 1
2010 Dec 23
1
Running sweave automatically using cygwin
Hi all, Hope someone could help me. I am trying to run automatically the conversion of an Rwn file to a tex file. I am using windows 7, and cygwin. I tried to run automatically the Sweave.sh script, in its the most recent version available at R webpage: http://cran.r-project.org/contrib/extra/scripts/Sweave.sh Unfortunately, I got this error message: =========================== Raquel at
2003 Nov 21
1
Using log() on an openMosix cluster
Hi all, I was hoping to get some advice about a problem that I realize will be difficult to reproduce for some people. I'm running R 1.7.1 on an openMosix (Linux) cluster and have been experiencing some odd slow-downs. If anyone has experience with such a setup (or a similar one) I'd appreciate any help. Here's a simplified version of the problem. I'm trying to run the