Skip to content

Minimizing Computational Time

2 messages · Naser Jamil, R. Michael Weylandt

#
On Tue, Oct 23, 2012 at 11:06 AM, Naser Jamil <jamilnaser79 at gmail.com> wrote:
Yes, just omit it and it all works magically:

psi1.hat <- psi1(alpha1, beta1, alpha2, beta2, dose)
psi2.hat <- psi1(alpha1, beta1, alpha2, beta2, dose)

Note that you also don't need to initialize psi1.hat, psi2.hat in this
circumstance.

I think you would greatly benefit from re-reading the bit of the
"Introduction to R" manual which covers vectorization.

Cheers,
Michael