similar to: Multiple test of proportion in r

Displaying 20 results from an estimated 400 matches similar to: "Multiple test of proportion in r"

2017 Oct 10
2
Power test binominal GLM model
Dear All I have run the following GLM binominal model on a dataset composed by the following variables: TRAN_DURING_CAMP_FLG enviados bono_recibido 0 1 benchmark 0 1 benchmark 0 1 benchmark 0 1 benchmark 0 1 benchmark 0 1
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
2011 Feb 09
1
help with operations inside matrix
Hello World! I'm working on my thesis right now (something about financial immunization) I'm currently working in the basics, doing a matrix that lists the present value (or weight) of every combination of coupon rate and term to maturity, this is the code I have right now which is giving me a "longer object length is not a multiple of shorter object length" #start
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
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 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 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
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,
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),
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 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
2005 Dec 17
0
bug? saving (valid) updated object results in validation error
Hi! I have an error that I don''t understand. It shouldn''t be happening, according to the documentation! I have a class, defined as below. > class Coupon < ActiveRecord::Base > belongs_to :product > belongs_to :account > validates_presence_of :product > validates_associated :product > validates_presence_of :voucher > validates_presence_of
2014 Apr 03
2
How to store interim print results
Dear R forum, Following is an customized extract of a code I am working on. settlement = as.Date("2013-11-25") maturity   = as.Date("2015-10-01") coupon     = 0.066 yield      = 0.1040 basis      = 1   frequency = 2 redemption = 100 # __________________________________________________________________ add.months = function(date, n)  {   nC <- seq(date, by=paste (n,
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
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
2012 Jan 21
1
help with couponprinter.exe
I don't have access to a Windows machine at the moment and I have been trying to figure out a way to install the coupon printer from coupons.com on my Linux pc. I have wine 1.3.37 installed but the couponprinter.exe file causes WINE to crash every time that I reach the license agreement window. The "next" button is grayed out and I'm unable to proceed any further. Has anyone
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