Re: [R] how to compute Bonferroni, Tukey's, Sheffe 95%-condence intervals for coefficients B1, B2, B3 in linear regression?

2016-05-05 Thread super
als for these coefficients. Do anyone happen to know it? At 2016-05-05 03:55:45, "David Winsemius" wrote: > >> On May 4, 2016, at 7:45 AM, super wrote: >> >> >> Dear experts, >>I have a problem in compute Bonferroni,Tukey's,Sheffe 95%-condence

[R] how to compute Bonferroni, Tukey's, Sheffe 95%-condence intervals for coefficients B1, B2, B3 in linear regression?

2016-05-04 Thread super
Dear experts,     I have a problem in compute Bonferroni,Tukey's,Sheffe 95%-condence intervals for coefficients B1,B2,B3 in linear regression using R? how can i do it? I only know how to compute these three cofindence intervals in multicomparsion by using multcomp package, and i am search a lot

[R] About a R learning course

2014-08-03 Thread super
Hadley wickham is goting to teach a two day course on advanced R and package development in NYC, Sep 8-9. You can learn more in https://www.eventbrite.com/e/master-r-developer-workshop-tickets-11846598495 Could students from NYC make a trial to recording the course if permitted? [[a

[R] A quesion about Shiny

2014-07-27 Thread super
I now have two win7s in a local area network called A and B. A now can run shiny app, and it shows that it listen 192.168.1.100:6271. And A can visite the app in A's own chrome using 192.168.1.100:6271. Then I want to B to visite A's shiny app. I type 192.168.1.100:6271 in chrome, but it doesn

Re: [R] How to modify the body of a function?

2014-07-27 Thread super
redefine);.(oldbody);.(addstuff)},list(redefine=quote(return<-function(x){x}),oldbody=oldbody,addstuff=quote(function(){}))) body(f1)<-newbody closure<-f1() ls(environment(closure)) environment(closure)$f3 Is there a easy way to do my original task? At 2014-07-27 09:41:49, "sup

Re: [R] How to modify the body of a function?

2014-07-27 Thread super
<- body(f) >> newBody <- bquote({ .(origBody) ; .(addedStuff) }, list(origBody=origBody, >> addedStuff=quote(function(){}))) >> body(f) <- newBody >> f >function () >{ >{ >1 >} >function() { >} >} >> f() >fu

[R] How to modify the body of a function?

2014-07-27 Thread super
Suppose that I had a function as below: f<-function() { return(1) } i want to change the body of f to the form like this: f<-function(){ 1 function() {} } How can i do the task using body(f) or something else solutions? [[alternative HTML version deleted]]

Re: [R] A question about call()

2014-07-24 Thread super
actually represent it's value? I hope you can read the section expressions. At 2014-07-24 07:15:55, "Duncan Murdoch" wrote: >On 24/07/2014, 2:41 AM, super wrote: >> The question is as below: >> Exercises >> 1.The following two calls look the same, but are

[R] A question about call()

2014-07-23 Thread super
The question is as below: Exercises 1.The following two calls look the same, but are actually different: (a <- call("mean", 1:10)) #> mean(1:10) (b <- call("mean", quote(1:10))) #> mean(1:10) identical(a, b) #> [1] FALSE What¡¯s the difference? Which one should you prefer? So, how i can figure ou

[R] A question about call()

2014-07-23 Thread super
The question is as below: Exercises 1.The following two calls look the same, but are actually different: (a <- call("mean", 1:10)) #> mean(1:10) (b <- call("mean", quote(1:10))) #> mean(1:10) identical(a, b) #> [1] FALSE What¡¯s the difference? Which one should you prefer? So, how i can figure ou

[R] What is the group generic mean?

2014-07-02 Thread super
Dear all, I just can't figure out what is the group generic mean, I know s3 object oriented system, and there is a generic function concept there, i know it, but when come to the group generic, i can't understand, please help ... [[alternative HTML version deleted]] __

Re: [R] Estimate of variance and prediction for multiple linear regression

2010-06-23 Thread cc super
n Tue, 2010-06-22 at 23:11 -0700, cc super wrote: > > Hi, everyone, > > > > Night. I have three questions about multiple linear regression in R. > > > > Q1: > > > > y=rnorm(10,mean=5) > > x1=rnorm(10,mean=2) > > x2=rnorm(10) > > lin=lm(

[R] Estimate of variance and prediction for multiple linear regression

2010-06-23 Thread cc super
Hi, everyone, Night. I have three questions about multiple linear regression in R. Q1: y=rnorm(10,mean=5) x1=rnorm(10,mean=2) x2=rnorm(10) lin=lm(y~x1+x2) summary(lin) ## In the summary, 'Residual standard error: 1.017 on 7 degrees of freedom', 1.017 is the estimate of the constance variance?