Displaying 20 results from an estimated 600 matches similar to: "CORRECTION - Storing results in a loop"
2010 Feb 15
1
Storing processed results in a loop
Dear R Helpers
I have an 'instrument.csv' file with 3 instrument names and 5 rates each i.e. it has 7 columns and 6 rows (including row names).
'instrument.csv'
instrument1 instrument2 instrument3
12 5 14
11 7 7
14 11 3
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 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 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 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
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 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
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
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 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
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 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 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
2006 Nov 27
1
rSpec website tutorial correction
Hi there,
On page
http://rspec.rubyforge.org/documentation/rails/writing/views.html the
view spec example is incorrect.
Instead of:
require File.dirname(__FILE__) + ''/../../spec_helper''
It should read:
require File.dirname(__FILE__) + ''/../spec_helper''
Regards,
Keith
2004 Dec 18
0
Minor correction to last post
I was mistaken about some of these commands being
dll''s. They are builtins for cmd.exe.
Anyway, I think the "try twice" for CreateProcess()
approach is still the best option.
Dan
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
2006 Mar 02
0
[PATCH] small correction to allow editing of html with Ajax.InPlaceEditor
Ajax.InPlaceEditor will not let you edit HTML as it strips all tags
coming from the loadTextURL Ajax callback. Bug or feature? I say bug.
The patch below fixes this.
-Rob
--- js/controls.js.old 2006-03-02 13:46:26.000000000 +0000
+++ js/controls.js 2006-03-02 13:46:29.000000000 +0000
@@ -628,7 +628,7 @@
onLoadedExternalText: function(transport) {
Element.removeClassName(this.form,
2006 Jun 17
1
timezone correction stuff
Apologies for being late to the party with this...
I finally found my old notes on this re: helping out a blind friend fix his
centos box...
log in as root
cd /usr/share/timezone
cd /usr/share/zoneinfo/America/
cp Los_Angeles /etc/localtime
/usr/bin/rdate -s time.nist.gov
/sbin/hwclock --systohc
For more details, go to
http://wiki.ehow.com/Change-the-Timezone-in-Linux
- rh
--
Robert
2007 Apr 11
0
[Correction] Milwaukee RUG Meeting on Wednesday 4/18 @ 5:30
Due to weather conditions, the meeting has been postponed until next week.
Thanks,
-- Tom.
On 4/11/07, Tom Jordan <tdjordan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Map => http://tinyurl.com/yswkjg
>
> <from_roland>
>
> The Wednesday Milwaukee Ruby User Group Meeting will be at Stark
> Investment''s Development Center located on the 11th floor of