similar to: Storing processed results in a loop

Displaying 20 results from an estimated 500 matches similar to: "Storing processed results in a loop"

2010 Feb 15
1
CORRECTION - Storing results in a loop
Dear R Helpers (There is a small correction in my earlier mail. In the 'instrument.csv' file, I had mentioned only three columns. Actually there are 7 columns. I regret the error. Rest contents remains the same. Thanks) I have an 'instrument.csv' file with 7 instrument names and 5 rates each i.e. it has 7 columns and 6 rows (including row names).   'instrument.csv'  
2010 Feb 01
4
'R' and 'Yield to Maturity'
Dear R helpers   I am calculating the 'Yield to Maturity' for the Bond with following characteristics.   Its a $1000 face value, 3 year bond with 10% annual coupon and is priced at 101. The yield to maturity can be calculated after solving the equation -   1010 = [100 / (1+ytm)]  + [100 / (1+ytm)^2] + [ 1100 / (1 + ytm)^3]   This can be solved by trial and error method s.t. ytm = 9.601%.
2010 Feb 02
2
Yield to Maturity using R
Dear R helpers,     Yesterday I had raised following query which was addressed by Mr Ellison. The query and the wonderful solution as provided by Mr. Ellison are as given below.    ## PROBLEM   I am calculating the 'Yield to Maturity' for the Bond with following characteristics.    Its a $1000 face value, 3 year bond with 10% annual coupon and is priced at 101. The yield to maturity can be
2010 Feb 10
3
How to repeat the names?
Dear R helpers   I have a city.csv file as given below.   'city.csv' city_name1        city_name2 New York City    Buffallo         So I define   city_name = read.csv('city.csv') city1 = city_name$city_name1 city2 = city_name$city_name2   My problem is how do I repeat the names one after other say 10 times i.e. my output should be like   New York City Buffallo New York City
2010 Jan 20
2
Please Please Please Help me!!
Dear R helpers   (I have already written the required R code which is giving me correct results for a given single set of data. I just wish to wish to use it for multiple data.)   I have defined a function (as given below) which helps me calculate Macaulay Duration and Modified Duration and its working fine with given set of data.   My Code -   ## ONS - PPA   duration = function(par_value,
2010 Feb 26
1
Reading multiple csv files
Dear R helpers   Some particular analysis leads me to various number of output csv files depending on some conditions. Say e.g. I have output files variable1.csv, variable2.csv, .............. Problem is I don't know how many csv files been generated. They could be 4, 5 or even 10. Each file will have a column called amount.   My problem is to find filewise mean(amount) and sd(amount). I need
2008 Aug 21
1
Interpreting Logistic Regression
Hi ! This is Madhavi from Mumbai, India. Incidently this is my first post. I am working on Credit Scoring Model and using R, I have run the logistic regression. I have received following Output. I have two questions (a) What is the significance of "family = binomial(link = logit)". Why do I have to mention Binomial? Is it because my dependent variable assumes only two values 0 and 1?
2010 Feb 19
1
How to use same function for diffrent input values
Dear R helpers   I have written some function (the actual code I have pasted at the end of mail) like say   indiv_rate = function(n, rate_name, rate, rate_rf1, rate_rf2, rate_rf3, rateprob1, rateprob2, rateprob3) { ........some R commands   return(data.frame(rate_name, rates = round(rate_data, digits = 4)))   }   ## INPUT   rates = indiv_rate(n = read.csv('number.csv')$n, rate_name =
2010 Jan 27
1
How to sort data.frame
Dear R heleprs   Suppose I have following data   Scenarios combination_names     series1    series2 Sc1 MAT2 GAU1 7.26554 8.409778 Sc2 MAT2 GAU2 7.438128 8.130275 Sc3 MAT3 GAU1 8.058422 8.06457 Sc4 MAT1 GAU2 8.179855 8.022071 Sc5 MAT3 GAU2 8.184033 8.191831 Sc6 MAT3 GAU2 7.50312 8.232425 Sc7 MAT1 GAU2 7.603291 8.200993 Sc8 MAT1 GAU1 8.221755 8.380097 Sc9 MAT3 GAU2 7.904908
2003 Sep 02
1
source code for samba-2.2.8a-1-sol8-suncc-64bit.pkg
Hi all, Where could I get souce code for samba-2.2.8a-1-sol8-suncc-64bit.pkg, I checked in samba.org but I just found pacakage( samba-2.2.8a-1-sol8-suncc-64bit.pkg). Thanks, Madhavi
2009 Feb 21
5
aspell
can u suggest a link for downloading aspell spellchecker (for tinyMCE Editor) using rails --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to
2010 Feb 16
1
Total and heading of portfoilo table
Dear R helpers, I have two input files as 'quantity.csv' and 'equity_price.csv' as (for example) given below. 'quantity.csv' GOOG     YHOO 1000         100 'equity_price.csv' sr_no   GOOG_price           YHOO_price 1            15.22                 536.40 2            15.07                 532.97 3            15.19                 534.05  4           
2010 Jan 19
0
Macaulay Duration for Group
Dear R helpers   I have following csv file which is an input   id       par_value    coupon_rate     frequency_coupon   tenure    ytm   1            1000             10                      1                     5          12   # Here frequency_coupon is coded s.t. 0 means Daily compounding, 1 means monthly compouding, 2 means Quarterly, 3 means Half yearly and 4 means only once. Thus in the
2009 Feb 26
2
rails spell check
Is ruby on rails supports aspell spell check ? Is there any links for spell check for rails application ? All links I gone through are discussing about php but not ruby on rails? Plzzzzzzzzzz give me reply .... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2010 Jan 19
0
Macualay Duration code in a Functional Form - Please Help
# I have written this code in Notepad++ and copied here. ## ONS - PPA    Duration = function(par_value, coupon_rate, freq_coupon, tenure, ytm) { macaulay_duration  =   NULL modified_duration    =   NULL freq_coupon_new    =   NULL if(freq_coupon <= 0) {     freq_coupon_new = 365 } if(freq_coupon > 0 & freq_coupon <= 1) {     freq_coupon_new = 12 } if(freq_coupon > 1 &
2009 Oct 06
4
Text editors for Sweave (rnw) files
Hi fellow R-users, Are there any text editors that recognize sweave (.rnw) files? I am running Windows Vista and in the past I used Tinn-R for R files but it (surprisingly) doesn't recognize rnw files and does not do any syntax highlighting for them. Thanks in advance, Greg __________________________________________________________________ Make your browsing faster, safer, and
2007 Aug 23
6
mongrel + pound + ziya problems
Hi, i''m using to ziya to display some graph. If i use it running mongrel as single instance all work good (very slow but work). If i try to use it with pound as htto proxy ziya charts wait forever for data...that never arrive. If i check the mongrel log it seemes to make queries on the database and retrieve data,but nothin appera. Anyone have an idea on how i can solve this problem?
2007 Apr 16
4
newbie :: Running script at client side
Hi all, I am newbie to Ruby and web programming as well. My show.rhtml is like, . .. ... <% require ''win32ole'' %> <% ie = WIN32OLE.new(''InternetExplorer.Application'') %> <% ie.visible = true %> <% ie.gohome %> ... .. . At server, when I access http://.../show it''ll open Iexplorer.exe as expected, but when I access same from
2010 Apr 05
3
A questionb about the Wilcoxon signed rank test
Hi guys,   I have two data sets of prices: endprice0, endprice1   I use the Wilcox test:   wilcox.test(endprice0, endprice1, paired = TRUE, alternative = "two.sided",  conf.int = T, conf.level = 0.9)   The result is with V = 1819, p-value = 0.8812.   Then I calculated the z-value of the test: z-value = -2.661263. The corresponding p-value is: p-value = 0.003892, which is different from
2006 Jun 29
1
script..aculo.us - ajax not working with NTLM on windows
Sorry if this is the wrong place to post this subject. I''m trying to implement an autocompleter input text (in asp, for the moment) using the script.aculo.us / prototype library. In IE (internetExplorer) it works fine. But in FF (fireFox) it keeps asking for my user/password on every atempt to reach the server from the AJAX call. The site is configures with integrated security and