Re: [R] BB - a new package for solving nonlinear system of equations and for optimization with simple constraints

2008-04-24 Thread Zaihra T
Dear Dr. Vardhan, From where can we download this package and its details. Thanks HAve a nice day. On Wed, 23 Apr 2008 16:39:50 -0400 "Ravi Varadhan" wrote: > Hi, > > > > We (Paul Gilbert and I) have just released a new R package on CRAN called > "BB" (stands

Re: [R] How to improve the "OPTIM" results

2008-04-06 Thread Zaihra T
try to use method "L-BFGS-B" and give boudary condition to the parameters in use so that the algorithm search is limited to a particular region as it seems u have to many parameters. On Fri, 4 Apr 2008 22:10:20 -0700 (PDT) kathie wrote: > > Dear R users, > > I used to "OPT

[R] L-BFGS-B needs finite values of 'fn'

2008-04-02 Thread Zaihra T
> > > > > > > > > > -Original Message- > > From: r-help-bounce! [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > > Behalf Of Paul Smith > > > > Sent:

Re: [R] using a variable in a subset of a dataframe

2008-04-01 Thread Zaihra T
i m not sure what u really want to do but if ur looking for some subsample of dataset then u might wanna try this (say in case u want to resample ur dataset by column "id" in ur dataset then do resample<-sample(dataset$id,n,replace=F) dataset<-dataset[resample, ] note here n

Re: [R] L-BFGS-B needs finite values of 'fn'

2008-03-31 Thread Zaihra T
try something like this before wrapping up your function else i guess u'll have to stick to Prof Brian Ripley suggestion his suggestions are usually best bet . f <- function(x) { n <- length(x) r <- sum((b^(0:(n-1)))*log(x)) - 200*(sum(x)-k)^2 if(!is.finite(r)) r

Re: [R] difference between 2 ecdfs

2008-03-27 Thread Zaihra T
Please chk out the url below it might be of some help for plotting step function or *look like* of step function. On Thu, 27 Mar 2008 09:03:58 -0400 wrote: > Thanks to David and Zaihra for their help. > > Besides plotting the difference between 2 ecdfs, I also would like it to

Re: [R] sample size in bootstrap(boot)

2008-03-26 Thread Zaihra T
"Nordlund, Dan (DSHS/RDA)" wrote: > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Zaihra T > > Sent: Wednesday, March 26, 2008 7:57 AM > > To: Jan T. Kim; R-help@r-project.org > >

[R] sample size in bootstrap(boot)

2008-03-26 Thread Zaihra T
Hi, Can someone tell me how to control sample size (n) in bootstrap function boot in R. Can we give some option like we give for # of repeated samples(R=say 100). Will appreciate any help. thanks __ R-help@r-project.org mailing

[R] (no subject)

2008-03-25 Thread Zaihra T
I have a problem, would really appreciate if anyone could help me. I am trying to use bootstrap to resample a dataframe n then use that sample of dataframe to calcuate parameter estimates using betabinomial model. I am kind of lost coz the bootstrap function requires us to give stat

[R] betabinomial!!!!!!aod!!!!!!!

2008-03-25 Thread Zaihra T
Hello , Can anyone please help me figure out how to do a weighted betabinomial analysis? I mean i have 700 clusters each of size 2 and the response (y[i1]+y[i2]) in each cluster case is either 0,1 or 2. I extract a sample of clusters such that the clusters in which response is 1

[R] betabinomial model

2008-03-19 Thread Zaihra T
Hi, can anyone help me fit betabinomial model to the following dataset where each iD is a cluster in itself , if i use package aod 's betabinom model it gives an estimate of zero to phi(the correlation coeficient ) and if i fix it to the anova type estimate obtained from icc( in pa

[R] Fwd: betabinomial model

2008-03-19 Thread Zaihra T
--- the forwarded message follows --- --- Begin Message --- Hi, can anyone help me fit betabinomial model to the following dataset where each iD is a cluster in itself , if i use package aod 's betabinom model it gives an estimate of zero to phi(the correlation coeficient ) and i