Displaying 7 results from an estimated 7 matches for "lfun".
Did you mean:
fun
2007 Apr 18
1
Gentleman and Ihaka , 2000 paper question
...If anyone has or is familiar with this paper, could they provide the
main program code for how the "newton" function would be called in their
example on page 500 of the paper. The authors are extremely clear in
their writing and the paper is quite an eye opener for me but it seems
like lfun somehow needs to be initialized so that it "grabs" the
environment of "Rmklike".
I'm not sure how one would go about doing this so I am wondering what
the main program that calls "newton" would be
if there was one. Thanks.
Mark
--------------------------------...
2010 Aug 14
1
How to add lines to lattice plot produced by rms::bplot
...dist <- datadist(age, blood.pressure, cholesterol, sex)
options(datadist='ddist')
fit <- lrm(y ~ blood.pressure + sex * (age + rcs(cholesterol,4)),
x=TRUE, y=TRUE)
p <- Predict(fit, age, cholesterol, sex='male', np=50) # vary sex last
bp.plot <- bplot(p, lfun=contourplot)
bp.plot
I have tried a variety of efforts at using update (which I assume is a
lattice function although I can find no help page for it. It does
appear in some of the lattice hep pages and my understanding is that
it pushes objects onto the list structure of a plot object. I'...
2012 Apr 09
3
how to add 3d-points to bplot {rms} figure?
...x)<-'numeric'
vel<-ux[,1]
ang<-ux[,2]
x<-ux[,3]
y<-ux[,4]
dat<- data.frame(ang=ang, x=x,y=y)
require(rms)
ddist2 <- datadist(dat)
options(datadist="ddist2")
fitn <- lrm(ang ~ rcs(x,4) + rcs(y,4), data=dat)
predi <- Predict(fitn, x, y)
bplot(predi,lfun=wireframe, screen = list(z = -40, x = -80), drape=TRUE)*
The file 2dcali_red.ttt consists of 4 columns can be found here :
http://www.color-space.de/upload/dl/2dcali_red.ttt link
The code gives me the bplot-figure, which looks like this:
http://r.789695.n4.nabble.com/file/n4544050/Screen_shot_2...
2011 May 23
6
Reading Data from mle into excel?
Hi there,
I ran the following code:
vols=read.csv(file="C:/Documents and Settings/Hugh/My Documents/PhD/Swaption
vols.csv"
, header=TRUE, sep=",")
X<-ts(vols[,2])
#X
dcOU<-function(x,t,x0,theta,log=FALSE){
Ex<-theta[1]/theta[2]+(x0-theta[1]/theta[2])*exp(-theta[2]*t)
Vx<-theta[3]^2*(1-exp(-2*theta[2]*t))/(2*theta[2])
dnorm(x,mean=Ex,sd=sqrt(Vx),log=log)
}
2002 Nov 19
0
a little questions
Hi all,
I have some little questions.
1)
I make a function, with list's help, for make a map, its work OK,
but it show an extra output of this:
lapply(split(dataset,dataset$trajectory),lfun)
Is possible to eliminate any text output from an function?
2)
I try to put an equation on a object to use in curve for example,
but it don't work, it possible to make a object of an equation?
ex.
fx <- a + b*x
for(a in 0){for(b in 1){curve(fx,...)}}
3)
Exist in R any functions to esti...
2010 Oct 24
6
Contour Plot on a non Rectangular Grid
Dear All,
I would like to plot a scalar (e.g. a temperature) on a non-rectangular
domain (or even better: I would simply like to be able to draw a contour
plot on an arbitrary 2D domain). I wonder if there is any tool to
achieve that with R. I did some online search in particular on the list
archives, found several queries similar to this one but was not able to
find any conclusive answer.
I
2002 Oct 02
6
help to make a map on R
Hi all,
I need a little help for construct an state's map on R.
The first problem is to get the data.
I have a datafile of longitude and latitude in the follow format:
trajectory latitude longtude
T -22.045618 -51.287056
T -22.067078 -51.265888
T -22.067039 -51.207249
T -22.059690 -48.089695
T -22.075529 -48.074608
T -22.072460 -48.044472
T -22.062767 -48.298473
T -22.077349