Hi
You definitely shall consult an introduction manuals you can find in
doc directory of your R installation. Good starting point is also
http://www.r-project.org/ and its documentatation section.
boxcox - function(x,min,max,step) {
lambda - seq(min,max,step) # you set lambda1
s -
I'd suggest looking at the boxcox function in the MASS package, which might
show you how to change your code.
It would be easier to diagnose the problem if you included a small example
showing the errors. Some possibilities are that if x is a vector, nrow(x)
will return NULL, that you are using
I'm trying to write a small function (below) to compute Box Cox
transformations of x for arbitrary values of lambda. I'd like to
specify a range of values for lamba (min,max,step) and am having trouble
getting the for loop to work. Suggestions?
Any pointers to resources for learning to