search for: corspt

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

2010 Apr 14
1
creating a new corClass for lme()
...tell, I can only model using one correlation class or the other. I would like my model to account for both temporal and spatial autocorrelation simultaneously. The ?corClasses help page provides some advice on how to create your own correlation class. I was able to create a new class that I called corSPT: I add the spatial and temporal autocorrelation matrices to produce the corSPT correlation matrix. The code for this is pasted below: ################## BEGIN ############### # Create some data N <- 100 x <- round(sin(rep(1:23/2,length.out=N)),digits=2)+1:N*2/N y <- round(cos(rep(1:23/...
2010 Apr 27
2
when setting environment: target of assignment expands to non-language object
Hi, I am trying to place my own functions in the nlme environment: The following statement works: environment(coef.corSPT) <- environment(getS3method("coef","corSpatial")) but this one returns an error: environment(get("coef<-.corSPT")) <- environment(getS3method("coef<-","corSpatial")) Error in environment(get("coef<-.corSPT")) <- environ...