[R] Power Calculation: Binomial Proportions (2 sided exact test for equivalence)

2016-06-07 Thread Munjal Patel
Dear R-Sig-teaching users, I am an intermediate level R user. I am performing the power calculations for the Binomial proportions (2 sided). I want to find the Power using the Exact test for the Equivalence of Binomial proportions. I do have the SAS code which is generating the Power for me but i

[R] Power Calculation:2-sided exact equivalence test for Binomial Proportions

2016-06-07 Thread Munjal Patel
Dear R-Users, I am an intermediate level R user. I am performing the power calculations for the Binomial proportions (2 sided). I want to find the Power using the Exact test for the Equivalence of Binomial proportions. I do have the SAS code which is generating the Power for me but i am unable to

[R] List of Lists by for Loop

2014-07-14 Thread Munjal Patel
to repeat the whole process for Digits=c(30,40,50,60) In short I want the Master list containing following List 1(#20) List a List b List 2(#30) List a List b so on Can you please guide me in this ? Thank you very much. Sincerely -- Munjal Patel [[alternative

[R] List of Lists in For Loop

2014-07-14 Thread Munjal Patel
Dear Experts, I have a one more doubt about making list of lists. Here is the simple code i have made. I am doing the following for only one digit=20 a=vector(20,mode=list) b=vector(20,mode=list) for (i in 1:20){ #Do Calculation a[[i]]=data.frame() b[[i]]=data.frame() } Now i have to

Re: [R] ConstrOptim Function (Related to Constraint Matrix/ui/ci error)

2013-09-26 Thread Munjal Patel
Hello All, I am stuck in the following problem. Cexpt=c(0,25,50,100,150,300,250,125,40) t=c(0,0.2,0.4,0.6,1,4,8,12,24) theta0= vector of 6 parms (My initial parameter) A=Constraint matrix (hopefully 6*6) B= Constraint vector of length 6) Cfit=function(t,theta){ J(t)=function(theta,t)

[R] ConstrOptim function Error

2013-09-26 Thread Munjal Patel
I am sorry for the previous email. I am getting such error while fitting in it. Am i missing something big in it ? Please guide me. Thanks a lot rm(list=ls()) V=1 ;ke=0.5 t=c(0.00,0.20,0.50,1.00,2.00,4.00,6.00,8.00,12.00,18.00,24.00,30.00) A=identitty matrix of 6*6 ## Constraint