Re: [R] fixed intercept

2010-06-05 Thread dwinsemius
?offset ?formula On Jun 4, 2010, at 4:53 PM, array chip wrote: Hi, is it possible to specify a constant intercept (based on prior knowledge) in linear regression using lm()? Thanks John __ R-help@r-project.org mailing list https://stat.ethz.ch/ma

Re: [R] Insert value in a Vector Alternately

2009-02-19 Thread dwinsemius
- Original Message - From: "baptiste auguie" To: "Gundala Viswanath" Cc: "r-h...@stat.math.ethz.ch R-help" Sent: Thursday, February 19, 2009 7:12:23 AM GMT -06:00 US/Canada Central Subject: Re: [R] Insert value in a Vector Alternately Perhaps you can try this, > d <- c(0.003774

Re: [R] How do I get xtabs to show missing data?

2009-02-18 Thread dwinsemius
Try setting exclude=NULL if you think that the NA's need to be considered as a value. The default is to exclude both NaN and NA. -- David Winsemius -- Original message -- From: "Farley, Robert" > I presume the behavior below (no Connector values in the second

Re: [R] interaction.plot - gridlines and formatting legend title...

2009-02-18 Thread dwinsemius
-- Original message -- From: Dimitri Liakhovitski > Thank you for providing advice on this graphics question. > > I am building an interaction.plot. > > d=data.frame(xx=c(3,3,2,2,1,1),yy=c(4,3,4,3,4,3),zz=c(5.1,4.2,4.4,3.5,3.3,-1.1,- > 1.3) You have different l

Re: [R] Log rank test power calculations

2009-02-18 Thread dwinsemius
It returns a chi-squared statistic with one degree of freedom. -- David Winsemius -- Original message -- From: Timthy Chang > > > >See the cpower() and spower() functions in Frank Harrell's Hmisc package > >on CRAN. > > > >HTH, > > > >Marc Schwartz > > How to

Re: [R] Normal cdf modified function

2009-02-18 Thread dwinsemius
I would think this could be approached by segmenting the probability "volume" using identities such as these: P(Y1 < Z1, Y2 < Z2, Y3 > Z3, Y4 > Z4) + P(Y1 < Z1, Y2 < Z2, Y3 > Z3, Y4 < Z4) = P(Y1 < Z1, Y2 < Z2, Y3 > Z3, Y4 < Inf) and P(Y1 < Z1, Y2 < Z2, Y3 < Z3, Y4 Z3, Y4 < Inf) = P(Y1 <