similar to: help with operations inside matrix

Displaying 20 results from an estimated 400 matches similar to: "help with operations inside matrix"

2008 Jan 15
4
Okay, I''m finally asking for help
Hi, all! I would love if someone could help me figure this out. I can''t seem to see why the following fails: Here''s the spec: it "should redirect back to the index page" do Coupon.should_receive (:new).with({"name"=>@expectedName,"amount"=>@expectedAmount}).and_return(@coupon) @coupon.should_receive(:save) response.should
2008 Jan 23
18
Not seeing the failure
All, I''m missing something simple, I think. I am writing a spec to say that my CouponController should create a new coupon from the form parameters, then set the current user. Here''s the spec: describe CouponController, "When posting to save_coupon" do before(:each) do @expectedName = "pepper''s" @expectedAmount = 5 coupon =
2006 Feb 18
2
Conversion to Adjacency Matrix
I have data in the following form: ID COUPON0 COUPON1 COUPON2 COUPON3 1 1 1000 1001 1002 2 2 NA NA NA 3 1000 1003 NA 1004 4 1001 NA 1005 NA 5 1002 NA NA NA 12 1003 NA NA 1006 7 1005 NA NA NA 8 1004 1007 NA NA 9 1006 NA NA NA 26
2012 Dec 26
2
has value in a console but it's nil in my controller and my view?
I have this strange behavior and I don''t undertand why. Here is the thing: I have this record in my payment model: 1.9.3p286 :019 > u.payment.last Payment Load (0.3ms) SELECT "payments".* FROM "payments" WHERE "payments"."user_id" = 10 => [#<Payment id: 37, bank_name: "Mercantil", plan: "Plan Uno", date:
2006 Jul 11
1
counter_cache, has_many and belongs_to
I am a bit confused about counter_cache here. The API docs http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html say that only the belongs_to association can take the :counter_cache option. When I try to use it on a has_many I get an "unknown key(s): counter_cache" error. Why would this be the case? belongs_to means that this model has a field with an id
2017 Oct 03
1
Multiple test of proportion in r
Dear all I'm currently facing the following situation. We have run a marketing campaign providing to some members one of two type of coupones. In addition to this, some of these members were already touched in the short past by another campaign. So I have the following dataset, where: -mixpre3M= is a flag variable telling us if the customer had already purchased somethign in the past
2006 Jun 26
1
Designing a Coupon System
I''m racking my brain trying to figure out a good method for a coupon system for our ecommerce site. Basically We have a variety of consditions for certain coupons and a variety of effects. Some examples: 1. 5% off any order 2. Free shipping on orders over $50 3. Free shipping on an order if a product foo is part of the order 4. 10% off product foo 5. 5% off entire order if product
2012 Aug 08
2
RQuantLib: SET_VECTOR_ELT() can only be applied to a 'list', not a 'symbol'
# Hi all, # trying to run the following example code # from 'RQuantLib' package... HullWhite <- list(term = 0.055, alpha = 0.03, sigma = 0.01, gridIntervals = 40) Price <- rep(as.double(100),24) Type <- rep(as.character("C"), 24) Date <- seq(as.Date("2006-09-15"), by = '3 months', length = 24) callSch <- data.frame(Price, Type,
2008 Jan 13
10
.html.erb files and autotest
When I work with a .html.erb file, the autotest rspec on rails stuff doesn''t understand the file to map it to the right test. I wanted to submit a patch for this, but I''m unsure where the specs would be to update. I found the necessary mapping in rspec_autotest.rb, but I can''t find any specs anywhere. Help? I just need to have /app/views/coupon/index.html.erb to map to
2023 Aug 01
2
Plotting Fitted vs Observed Values in Logistic Regression Model
Dear friends, I hope this email finds you all well. This is the dataset I am working with: dput(random_mod12_data2) structure(list(Index = c(1L, 5L, 11L, 3L, 2L, 8L, 9L, 4L), x = c(5, 13, 25, 9, 7, 19, 21, 11), n = c(500, 500, 500, 500, 500, 500, 500, 500), r = c(100, 211, 391, 147, 122, 310, 343, 176), ratio = c(0.2, 0.422, 0.782, 0.294, 0.244, 0.62, 0.686, 0.352)), row.names = c(NA, -8L),
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
2011 Apr 20
1
New Codeweavers CrossOver discount dealcode coupons avaliabl
The folks over at CodeWeavers have given us two new dealcodes. :) A dealcode is coupon code that can be used in their online store. The two new dealcodes are "EmulateMe" this dealcode is good for a 15% discount on CrossOver or CrossOver Games for Mac and Linux. The second dealcode is "CxForLess" and it will get you a 10% discount on any product in their store. They also have
2008 Dec 12
2
get first month of trixbox free
hi; threw the end of the year we are running a promo, when ordering any package on http://gwhosting.net including our vps servers and trixbox servers, you can get your first month off. Yes, that's right, enter "30free" with out the quote signs into the coupon code field during checkout to get your first month free. Give us a try, you won't be sorry. Your security is our
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%.
2009 Dec 06
1
R + Hull-White model using nonlinear least squares
Hi guys I have data that contains the variances vt of the yields of 1, 2, 3, 4, 5,10, 20 year bonds. Assuming the Hull-White model for the yield of a t-year zero-coupon bond, I have to estimate the ? of the Hull-White model using nonlinear least squares and give a 95% con?dence interval for each parameter. Please can you guys tell how to find out ? using R. Any suggestion regarding what functions
2009 Feb 11
1
Generating Correlation matrix
Dear R helpers, I have generated a portfolio of Equity, Dollar Rate and say zero coupon bond. I have calculated the daily returns based on the prices available for last two years. Now, I have three seperate csv files (Equity.csv, Dollar.csv and Bond.csv) containing the respective returns. I need to calculate the correlation matrix between the retuns of these assets. Please guide me how this
2011 Nov 03
1
RGoogleTrends error in "getGTrends"
Hi all, I've just installed RGoogleTrends Version:0.2-1 (after compiling it for windows). And when running the most basic command I get the following error: > ans = getGTrends("coupon") Error in curlPerform(url = url, curl = curl, .opts = .opts) : embedded nul in string: '<ff><fe>Y' In addition: Warning message: RS-DBI driver warning: (closing pending
2013 Jan 17
1
Help with interpolation
hi guys I need to interpolate values for the zero coupon yield curve. Following data is given date days rate 1996 01
2003 Dec 13
1
Sipura SPA-2000 is shipping, discount for asterisk-users
Some people on this group may have understood from messages posted here that the Sipura SPA-2000 is not currently available for shipping. That is not the case. Voxilla.com has the Sipura SPA-2000 available for immediate shipping, and has had them since late November. The price is $109.95, and it comes with a month of free VoicePulse service with activation fees waived (a $65 value). In return
2013 Nov 11
2
"Unwilling to Perform" UNIX Attributes
Hi, I'm running Samba 4.0.8, on FreeBSD 9.2, from operating system packages, as a DC. I have a BDC, running the same. I'm using a Windows 7 workstation with "Active Directory Users and Computers" snap-in to manage usernames, passwords, etc. The workstation is part of the domain, and I'm logged on as Administrator in the domain. I can create groups and add members to them