differences?
Best regards,.
Ravi.
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology
School of Medicine
Johns Hopkins University
Ph. (410) 502-2619
email: rvarad...@jhmi.edu
of the matrix, (A + t(A))/2.
Best,
Ravi.
____
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology
School of Medicine
Johns Hopkins University
Ph. (410) 502-2619
email: rvarad...@jhmi.edu
- Original Message -
From: Spencer Graves
Date: Sunday,
Look at the "optmatch" package.
____
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology
School of Medicine
Johns Hopkins University
Ph. (410) 502-2619
email: rvarad...@jhmi.edu
uld be the "optimx" package,
which unifies a large number of optimiaztion tools under one umbrella.
Hope this helps,
Ravi.
____
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology
Scho
ntrol option as
`all.methods=TRUE' to get all the algorithms.
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns
Hopkins University
Ph. (410) 502-2619
email: rvarad...@jhmi
u plotted the amount of learning on the Y-axis and
time on the X-axis, a steep learning curve means that one learns very quickly,
but this is just the opposite of what is actually meant.
Best,
Ravi.
____
Ravi Varadhan, Ph.D.
?duplicated
This will identify common locations where duplications occur:
duplicated(a) & duplicated(b)
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns
Hop
e changes, you might want to try
optimizing using "optimx" package, as it will try various optimization
tools. Hopefully, some of them will be successful.
If you send the data test$A, we might be able to help you better.
Hope this helps,
Ravi.
-
c(0.1, 0.1, 2.5),control=list(trace=TRUE))
Hope this helps,
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns
Hopkins University
Ph. (410) 502-2619
email: rvarad...@jhmi.e
etect warnings.
Any pointers would be appreciated.
Thanks,
Ravi.
____
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology
School of Medicine
Johns Hopkins University
Ph. (410) 502-2619
email: r
May be I could do:
for (i in 1:nsim) {
last.warning <- NULL
# do model fitting
if(!is.null(last.warning)) # discard simulation result
}
I think this might work. Any other ideas?
Ravi.
____
Ravi Varadhan, Ph.D.
Assist
Nope - that does not work. The value of last.warning is not reset after the
initial NULL.
Ravi.
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology
School of Medicine
Johns Hopkins
Dear Bill - your solution works beautifully. Thank you very much.
David - thank you as well for your solution. It also works.
Best regards,
Ravi.
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and
separation
using a minorization inequality, and hence the problem simplifies greatly.
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns
Hopkins University
Ph. (410) 502
nging criticisms. Mark, by
reacting to the comments in a personal manner, I am afraid that you are the
loser.
Best,
Ravi.
____
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology
School of Med
t;Mean relative difference: 1.463598"
The results from `offset' are correct, i.e. lp2 can be readily verified to be
equal to 0.05 * (age - ph.karno). I don't know how lp1 is computed.
Ravi.
Ravi Varadhan, P
s.
Ravi.
____
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology
School of Medicine
Johns Hopkins University
Ph. (410) 502-2619
email: rvarad...@jhmi.edu
- Original Message -
From: Yann PĂ©riar
iple optima, you can get different answers from properly
converged iterations.
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns
Hopkins University
Ph. (410) 502-2619
email
Take a look at pvladens() function in "bootruin" package.
Ravi.
____
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology
School of Medicine
Johns Hopkins University
Ph. (410) 502-
o
accomplish this.
Ravi.
-------
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins
University
Ph. (410) 502-2619
email: rvarad...@jhmi.edu
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-
This is no longer on CRAN. Try one of the other constrained optimization
packages: "Rsolnp" or "alabama"
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Me
R prediction experts.
Thanks & Best,
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns
Hopkins University
Ph. (410) 502-2619
email: rvarad...@jhmi.edu
-Original M
You might want to use `trace' and/or other debugging options to better
understand when and why this happens.
Ravi.
____
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology
School of Med
Ben,
I am a huge fan of the old-fashioned and low-tech `cat'; it is good to know
that I am not alone in this!
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns
Ho
That is essentially zero, because you are so far out in the left tail of the
distribution. So, you can ignore the negative sign and treat it as zero.
Ravi.
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric
mp; u1 <=
z2) & (u2 > 4 & u2 <= z2)
ff <- ifelse (reg.nonzero, u1*(z1-u1)*u2*(z2-u2)*exp(-0.027*(12-z2)), 0)
return(ff)
}
Ravi.
____
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontolo
The following one-liner generates uniformly distributed 3-tuples that sum to 1:
diff(c(0, sort(runif(2)), 1))
More, generally you can generate n-tuples that sum to unity as:
diff(c(0, sort(runif(n-1)), 1))
Ravi.
Ravi
t;- runif(3)
rtrg2[i, ] <- tmp/sum(tmp)
}
par(mfrow=c(2,1))
triplot(rtrg) # Looks more uniformly distributed
triplot(rtrg2, col=2) # Corners are sparsely populated
Ravi.
____
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of
TRUE)
rtrg.1 <- cbind(pmin(tmp[,1], tmp[,2]), abs(tmp[,1] - tmp[,2]),1 -
pmax(tmp[,1], tmp[,2]))
})
all.equal(rtrg, rtrg.1)
Now, how can we use vis.test to test differences between these?
Best,
Ravi.
____
Ravi Varadhan, Ph.D.
Assi
You get 0 because you did not specify lower and upper bounds that define the
hyper-rectangle; therefore, the default is used which is (0,1)^4.
Specify the proper lower and upper bounds.
Ravi.
Ravi Varadhan, Ph.D.
Assistant
ct.
Ravi.
____
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology
School of Medicine
Johns Hopkins University
Ph. (410) 502-2619
email: rvarad...@jhmi.edu
- Original Message -----
From: Ravi Varad
Try this:
pred <- pred/1e06
DV <- DV/1e03
opt1 <- optim(fn=my.function, par=1.0)
opt2 <- optim(fn=my.function, par=1.0, method="BFGS")
opt3 <- optim(fn=my.function, par=1.0, method="L-BFGS-B", lower=0, upper=1)
opt1
opt2
opt3
Ravi.
-
?integrate
From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On Behalf Of
cindy Guo [cindy.g...@gmail.com]
Sent: Friday, April 08, 2011 9:21 PM
To: r-help@r-project.org
Subject: [R] integration
Hi, All,
I have a density function with 3 v
It does. See `lower' and `upper' arguments.
Why are y and z not known? Say, you want the marginal of x, i.e. integrate
over x. Now, y and z are fixed. You fix them at different values, but they
are known.
Ravi.
---
Ravi Vara
Bill's code is insanely fast!
f2 <- function(x, y) length(y) - findInterval(-x, rev(-sort(y)))
n1 <- 1e07
n2 <- 10^c(1,2,3,4,5,6,7)
tt <- rep(NA, 7)
x <- rnorm(n1)
for (i in 1:length(n2)){
y <- runif(n2[i])
tt[i] <- system.time(a1 <- f2(x, y))[3]
}
> tt
[1] 0.70 0.86 1.03 1.28 1.54 4.99
Generate random numbers from a multinomial.
?rmultinom
# The following will generate n multinomial vectors each of size m
rmultinom(n, size=m, prob=m^(-1/8)) # you need to specify probabilities
appropriately
Ravi.
From: r-help-boun...@r-project.org [r-he
If you had told us what the error message was, my job would have been easier.
But, at least you provied the code, so it was not hard for me to see where the
problem was. There is a problem with the strategy used by `qmvnorm' to locate
the initial interval in which the quantile is supposed to l
Here is one solution:
rowmatch <- function(A,B) {
# Rows in A that match the rows in B
f <- function(...) paste(..., sep=":")
if(!is.matrix(B)) B <- matrix(B, 1, length(B))
a <- do.call("f", as.data.frame(A))
b <- do.call("f", as.data.frame(B))
match(b, a)
}
A <- matrix(1:1000
I gave a solution previously with integer elements. It also works well for
real numbers.
rowMatch <- function(A,B) {
# Rows in A that match the rows in B
# The row indexes correspond to A
f <- function(...) paste(..., sep=":")
if(!is.matrix(B)) B <- matrix(B, 1, length(B))
a <- do.cal
Julian,
You have not specified your problem fully. What is the nature of f? Is f a
scalar function or is it a vector function (2-dim)?
Here are some examples showing different possibilities:
(1) y1 = f + e1 = a + b*exp(-c*x) + e1; y2 = f + e2 = a + b*exp(-c*x) + e2;
(e1, e2) ~ bivariate norm
Hi Michael,
The coefficients of ridge regression are given by:
\beta^* = (X'X + k I)^{-1} X' y, (1)
where k > 0 is the penalty parameter and I is the identity matrix.
The ridge estimates are related to OLS estimates \beta as follows:
\beta^* = Z \beta,
Kathie,
It is very difficult to help without adequate information. What does your
objective function look like? Are you maximizing (in which case you have to
make sure that the sign of the objective function is correct) or minimizing?
Can you try "optimx" with the control option all.methods=TR
ization algorithms.
Ravi.
-------
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins
University
Ph. (410) 502-2619
email: rvarad...@jhmi.edu<mailto:rvarad...@jhmi.edu>
[[a
.
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins
University
Ph. (410) 502-2619
email: rvarad...@jhmi.edu<mailto:rvarad...@jhmi.edu>
[[alternative HTML version d
distribution. What kind of bivariate coupla might work? Then, how to
generate from the conditional distribution [U | T]? Any thoughts?
Thanks,
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology
these gradients to us?
In "optimx", we should probably change this into a "warning" rather than a
"stop".
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology Sc
ical gradient is not sufficiently close to the
user-specified gradient.
Best,
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins
University
Ph. (410) 502-2619
email
s will be close to zero
ans2$hessian
However, it is not known whether the standard errors obtained from this Hessian
are asymptotically valid.
Best,
Ravi.
-------
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Geronto
lculate significance levels.
Best,
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins
University
Ph. (410) 502-2619
email: rvarad...@jhmi.edu<mailto:rvarad..
ction of w1'. This is a simple calculus
exercise, and I will leave this as a homework problem for you to solve!
Best,
Ravi.
-------
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns
argument.
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins
University
Ph. (410) 502-2619
email: rvarad...@jhmi.edu<mailto:rvarad...@jhmi.edu>
[[alternative
In the limit as x goes to infinity, the integrand x f(x) should go to 0
sufficiently fast in order for the integral to be finite. The error indicates
that the integrand becomes infinite for large x. Check to ensure that the
integrand is correctly specified.
I don't understand how you can repla
If you have any specific features of the time series of soil moisture, you
could either model that or directly estimate it and test for differences in the
4 treatments. If you do not have any such specific considerations, you might
want to consider some nonparametric approaches such as function
n the actual
numerical values. How can I do this?
Thanks very much for any suggestions.
Best,
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins
University
Ph. (410)
he 3-column matrix. It would be
nice, if there was a more direct way to get the numerical output, perhaps a
numeric option in capture.output().
Best,
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Ger
I did think of this solution, Keith, but I am generally uncomfortable (may be
"paranoid" is a better word) with the use of `<<-'. Perhaps, my fear is
unjustified in this particular situation.
Thanks,
Ravi.
-------
Ravi Vara
covariates, and then
converting the scaled coefficients back to the original scale? Of course, the
end user could do this just as easily!
Best,
Ravi
Ravi Varadhan, Ph.D.
Assistant Professor
The Center on Aging and Health
Division of Geriatric Medicine & Gerontology
Johns Hopkins Univer
boundary. Asymptotic distribution of
MLE estimators will not be normal in the case of convergence at the boundary.
This is a difficult problem.
Best,
Ravi
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology
default method "BFGS" is better in this setting.
Hope this helps,
Ravi
-------
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins
University
Ph. (410) 502-2619
email:
ite matrix since the original
matrix ought to be negative-definite.
Ravi
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins
University
Ph. (410) 502-2619
email: rvarad..
Hi,
How can I get information on how many times a particular package has been
downloaded from CRAN?
Thanks,
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins
Hi,
You really need to study the documentation of "optim" carefully before you make
broad generalizations. There are several algorithms available in optim. The
default is a simplex-type algorithm called Nelder-Mead. I think this is an
unfortunate choice as the default algorithm. Nelder-Mea
here is also the issue of properly scaling your function, because it is
poorly scaled. Look how different the 2 parameters are - they are 7 orders of
magnitude apart. You are really asking for trouble here.
Hope this is helpful,
Ravi.
----
roving the convergence of a
sequence. This could be an explanation for the better performance, but I
cannot say for sure.
Hope this is helpful,
Ravi
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School o
Thank you, Peter. I don't know why I didn't think of this!
Also, thanks to Ilai.
Ravi
From: Peter Ehlers [ehl...@ucalgary.ca]
Sent: Tuesday, April 03, 2012 8:22 PM
To: ilai
Cc: Ravi Varadhan; r-help@r-project.org
Subject: Re: [R] A co
Jorge,
You can use the package "BB" to try and solve this problem.
I have re-written your functions a little bit.
# --
# Constants
# --
l=1
m=0.4795
s=0.4795
# --
# Functions to estimate f_i-k_i
#
Let V = (v11, v12, ..., v1n, v21, v22, ..., v2n) be the matrix of data with
2*n columns. Now, you simply do PCA on this data matrix.
See the following paper, which has a related example:
Gabriel, K. R. and Odoroff, C. L. (1990). Biplots in biomedical research.
Statistics in Medicine, 9, 469-48
in advance for any help or hints.
Ravi.
----
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins University
Ph: (410) 502-2619
Fax: (410) 614-9625
Email: [EMAIL PROTECTED]
Webpage:
regards,
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins University
Ph: (410) 502-2619
Fax: (410) 614-9625
Email: [EMAIL PROTECTED]
ose to zero. If not, try a
different starting value.
Ravi.
----
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins University
Ph
Also, note that depending on A and B there are likely to be multiple (or no)
solutions to your equation.
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine
tion is what you want.
Ravi.
----
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins University
Ph: (410) 502-2619
Fax: (410) 614-9625
Email: [EMAIL PROTECTED]
Webpage: http://www.jhsph.edu/a
uot; posed. You could increase your penalty to get a solution that is
closer to the analytical solution you are expecting.
Ravi.
-------
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
D
[8] 0.8044702 0.7879365
>
>
As you can see, things are much better!
Hope this helps,
Ravi.
----
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins University
"numeric" mode. Is there a way to do
this so that I can then manipulate the numeric data frame?
Thanks for any help.
Best,
Ravi.
-------
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging
uot;)
Hope this is helpful,
Ravi.
----
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins University
Ph: (410) 502-2619
Fax: (4
;, the maximum
steplength.
s4 <- lsoda(y=sqrt(pi/2), times=t4, func=fn, parms=0, hmax=0.001)
plot(s4, type="l")
Best,
Ravi.
----
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and
t values for atol, rtol, and
hmax, which are 1e-06, 1e-06, and Inf, respectively.
"rk4", on the other hand is not so intelligent. It basically use fixed time
increment.
Ravi.
----
---
Ravi Varadhan, Ph.D.
A
.
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins University
Ph: (410) 502-2619
Fax: (410) 614-9625
Email: [EMAIL PROTECTED]
Webpage: http
.
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins University
Ph: (410) 502-2619
Fax: (410) 614-9625
Email: [EMAIL PROTECTED]
Webpage: http://www.jhsph.edu
or example, GW Stewart's Matrix Algorithms (vol 1. Basic
decompositions, SIAM 1998), page 70.
Ravi.
----
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine
mapping.
Best regards,
Ravi.
----
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins University
Ph: (410) 502-2619
Fax: (410) 614-9625
Email: [EMAIL PROTECTED]
Webpage: http://
ow you intended to use these, but they are the problem.
Therefore, you need to define your function correctly.
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Ger
lly for possible errors.
Ravi.
----
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins University
Ph: (410) 502-2619
Fax: (410) 614-9625
Ema
e of numerical round-off (there is no argument
in polyroot that governs the accuracy of the roots).
Best,
Ravi.
----
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medici
qrt(.Machine$double.eps).
I wouldn't consider multiple real roots to be conjugates, since they are not
distinct points on the complex plane, as well as for the reason that you
have given.
Best,
Ravi.
----
---
Ravi
ances are used by these
algorithms. However, it appears that "polynom" is more accurate.
Best,
Ravi.
----
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriat
derivative
sqrt(mean(diff(A[1:11,2], diff=2)^2))
sqrt(mean(diff(A[12:22,2], diff=2)^2))
sqrt(mean(diff(A[23:33,2], diff=2)^2))
It is clear that the "new smoothed" data is the smoothest.
Ravi.
----
---
Ravi Vara
You may want to check the package "sde" that can simulate from a number of
different stochastic differential equations, including the OU process.
Ravi.
-------
Ravi Varadhan, Ph.D.
Assistant Professor,
The following will work:
apply(my.array, c(1,2), mean)
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins University
you
ensure that you have a "global" maximum?
Ravi.
----
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins University
tin.
Ravi.
-------
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins University
Ph: (410) 502-2619
Fax: (410) 614-9625
Email: [EMAIL PROTECTED]
Webpage: http://www.jhsph.edu/agingandhea
components, and stop when you suspect rank-deficiency.
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins University
Ph: (410
45
9%2bdi015668%2b01p00145%2b0%2cFF15&searchUrl=http%3A%2F%2Fwww.jstor.org%2Fse
arch%2FAdvancedResults%3Fhp%3D25%26si%3D1%26q0%3DYe%2Bdata%2Bmining%26f0%3D%
26c0%3DAND%26wc%3Don%26sd%3D%26ed%3D%26la%3D%26dc%3DStatistics
Ravi.
---
.identical(initial.matrix, initial.matrix2)
This tests for "identicality", which, of course, is not appropriate for
floating point computations.
Ravi.
----
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center
.
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins University
Ph: (410) 502-2619
Fax: (410) 614-9625
Email: [EMAIL PROTECTED]
Webpage: http
A code that can deal with missing values by somehow imputing
them.
Ravi.
----
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins
rm of the set of functions by calling
optim()
# Uses the BFGS algorithm within optim()
# All the control parameters can be passed as in the call to optim()
#
# Author: Ravi Varadhan, Center on Aging and Health, Johns Hopkins
University, [EMAIL PROTECTED]
#
# June 21, 2007
#
func <- functi
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins University
Ph: (410) 502-2619
Fax: (410) 614-9625
Email: [EMAIL PROTECTED]
We
*t)-(l-b*p)*exp(-t)*sinh(delta*t)/delta)
logl <- sum(diff(y)*log(diff(mt))-diff(mt)-lfactorial(diff(y)))
return(-logl)
}
However, I don't understand what the following fragment is doing in `fr':
l^2 > lambda*b*p
Can you clarfy that?
Ravi.
--
501 - 600 of 694 matches
Mail list logo