Displaying 2 results from an estimated 2 matches for "tempfun".
Did you mean:
tempfunc
2007 Sep 12
1
enquiry
...ed. There is a error message (theta2 argument misses) and I
don?t understand why. I would like to know what I have wrong. Thank you
very much for your time.
fitM7 <- coxph(Surv(lifespan,censured) ~ south + frailty(id,
dist='gamma')+ frailty(mob, dist='gamma'), data= usa)
tempfun <- function(theta1, theta2) {
fit <- coxph(Surv(lifespan,censured) ~ south + frailty(id,
dist='gamma', sparse= TRUE, theta=theta1)+ frailty(mob, dist='gamma',
sparse =TRUE, theta=theta2), data=usa)
aic <- (fit$loglik[2] - fit$loglik[1]) - sum(fit$df)
return(2*aic)
}
nlmi...
2004 Feb 13
3
Calculate Closest 5 Cases?
I've only begun investigating R as a substitute for SPSS.
I have a need to identify for each CASE the closest (or most similar) 5
other CASES (not including itself as it is automatically the closest). I
have a fairly large matrix (50000 cases by 50 vars). In SPSS, I can use Correlate > Distances to generate a matrix of similarity, but only on a small sample. The entire matrix can not