search for: lfproc

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

2005 Oct 05
1
how do I write Rd file for this?
...I have a problem with some Rd files that I hope some one can help me resolve. Here's an example: In the package there's a function called locfit.censor(). This function can be used in a few different ways: locfit.censor(x, y, cens, ...) locfit.censor(formula, ...) locfit(formula, ..., lfproc=locfit.censor) What I did in locfit.censor.Rd is have something like: \synopsis{ locfit.censor(x, y, cens, ..., iter=3, km=FALSE) } \usage{ locfit(formula, cens=cens, lfproc=locfit.censor) locfit.censor(formula, cens, ..., iter=3, km=FALSE) } However, R CMD check gives me: Undocumented argument...
2009 Sep 04
1
Problem with locfit( ... , family="hazard")
...age-50)+.8*(sex=='Female')) > dt <- -log(runif(n))/h > label(dt) <- 'Follow-up Time' > e <- ifelse(dt <= cens,1,0) > dt <- pmin(dt, cens) > cfit <- locfit( ~ dt + age + sex, cens=cens, family = "hazard", xlim=c(0, max(dt)) ) Error in lfproc(x, y, weights = weights, cens = e, base = base, geth = geth, : NA/NaN/Inf in foreign function call (arg 1) In addition: Warning message: In lfproc(x, y, weights = weights, cens = cens, base = base, geth = geth, : NAs introduced by coercion Running the example on the locfit help page wo...