search for: wei2

Displaying 2 results from an estimated 2 matches for "wei2".

Did you mean: wei
2011 Nov 03
2
optimising a loop
...ids2 102 103 301 303 304 403 102 NA NA NA NA NA NA 103 NA NA NA NA NA NA 301 NA NA NA NA NA NA 303 NA NA NA NA NA NA 304 NA NA NA NA NA NA 403 NA NA NA NA NA NA I want to replace some of the NAs following specific criterion included in 2 others matrix: > wei2 <- matrix(c(.6,.4,.5,.5,.9,.1,.8,.2,.7,.3,.6,.4),6,2,dimnames=list(nom.plac2, c("p1","p2")),byrow=T) > wei2 p1 p2 102 0.6 0.4 103 0.5 0.5 301 0.9 0.1 303 0.8 0.2 304 0.7 0.3 403 0.6 0.4 > voisin <- matrix(c("103","304", "303", &quo...
2008 Oct 28
2
Fitting weibull and exponential distributions to left censoring data
Dear R-users I have some datasets, all left-censoring, and I would like to fit distributions to (weibull,exponential, etc..). I read one solution using the function survreg in the survival package. i.e survreg(Surv(...)~1, dist="weibull") but it returns only the scale parameter. Does anyone know how to successfully fit the exponential, weibull etc... distributions to left-censoring