Re: [R] Power Function

2010-09-25 Thread jethi
hey, how can i plot this function? n=1000 m=2 k=n/m N=100 myfun <- function(n, m, alpha = .05, seeder = 1000) { l=matrix(0,nrow=m,ncol=N) for(i in 1:N){ set.seed(i) for(j in 1:m){ x=rnorm(n,0,0.5) y=rnorm(n,0,0.8) l[j,i]=cor((x[(((j-1)*k)+1):(((j-1)*k)+k)]), (y[(((j-1)*k)+1):(((j-1)*k)+k)])) } }

Re: [R] Power Function

2010-09-25 Thread jethi
hi, the part with the power function does not work. this is the " gute " function in my programm. because i´m not shure on what dependet my power function gute. and ofcourse the graphik does not work. thnx a lot:) regards Kaja Date: Fri, 24 Sep 2010 19:21:17 -0700 From: ml-node+2653667-1721

Re: [R] Power Function

2010-09-24 Thread Joshua Wiley
Hi, What part of your code does not work or does not do what you want? I am guessing that you want gute to return more than a single value (which is what it does in your code). Can you show us an example of the results you would like? Best regards, Josh I reworked some of your code to simpl

Re: [R] Power function for ratio of lognormal means: two equally

2009-05-12 Thread Ted Harding
On 12-May-09 12:00:50, Steve Candy wrote: > Hi All > This is a general stats problem that I am dealing with using R, > so any help is greater appreciated. > > I have two lognormal distributions with means M1 and M2. > If we have: > > H0: log(M1/M2)=0 > > H1: log(M1/M2) !=0 equivalent to log(M1/M

Re: [R] power function fitting

2007-11-05 Thread Bernardo Rangel Tura
On Mon, 2007-11-05 at 17:50 +0100, Duccio - wrote: > I would like to fit a power model of type: > y=b*x(^z) > to my data (having y as the response and x as the predictor variables). > I could not use linear models like y~x since R should estimate the parameter > z and not only the coefficient b. >