search for: trend1

Displaying 6 results from an estimated 6 matches for "trend1".

Did you mean: trend
2011 Feb 24
2
if statements on vectors
I have two vectors: both have possible values of 1,-1, or 0 trend1 <- c(1,1,1,1,1,1,-1,-1,-1,-1,-1,-1) trend2 <- c(1,1,1,1,1,1,1,1,1,1,1,1,1,1,) i want to create a third vector that is conditional upon these two vectors: if (trend2 == 1 && trend1 == 1) {position <- 1} elseif (trend2 == -1 && trend1== -1) {position <- 1} else {position...
2009 Jan 19
0
Trend.spatial function in geoR
I am having difficulty getting the trend.spatial function in geoR to work properly. After creating a trend.spatial object with a covariate, I try to add the command into my likfit() function as follows: trend1.trend.spatial <- trend.spatial("1st", trend1.geodata) trend1.spatial.EC0.1.reml <- likfit(spatial.geodata, trend1.trend.spatial, ini.cov.pars = spatial.EC0.1.eyefit, fix.kappa = FALSE, fix.psiA = FALSE, fix.psiR = FALSE, + lik.method = "REML", components = FALSE) I...
2003 Jan 21
1
(v2) quadratic trends and changes in slopes (R-help digest, Vol 1 #52 - 16 msgs)
...m> To: r-help at stat.math.ethz.ch Subject: [R] quadratic trends and changes in slopes I'd like to use linear and quadratic trend analysis in order to find out a change in slope. Basically, I need to solve a similar problem as discussed in http://www.gseis.ucla.edu/courses/ed230bc1/cnotes4/trend1.html .... RESPONSE: This message updates my earlier response. I just started programming with R on Friday and I wanted to make my response to you more general... before starting on a more difficult problem of the same type at work. The two improvements I've added are: (1) a more general proce...
2016 Apr 06
1
Extracting windows from time series
...cades that show a linear trend decrease of approximately -0.1 Kelvin or degrees. --> What I would like to program: A loop/function / command line that prints the values of all the trends (can also be overlapping) into a matrix that could have the following structure : Year 1 (of Trend1) Year 2 ( ... 2) Year 3 ..... ..... ..... Trend 1: Trend 2: Trend 3: ... . . I first tried to solve the task with a loop but ended up doing it with function but got stuck. Here is what I did so far: Puls <- Surface_temperature_MA10[10:394] + 1 # give all values in the TS a po...
2003 Jan 20
1
quadratic trends and changes in slopes
I'd like to use linear and quadratic trend analysis in order to find out a change in slope. Basically, I need to solve a similar problem as discussed in http://www.gseis.ucla.edu/courses/ed230bc1/cnotes4/trend1.html My subjects have counted dots: one dot, two dots, etc. up to 9 dots. The reaction time increases with increasing dots. The theory is that 1 up to 3 or 4 points can be counted relatively fast (a process known as "subiziting") but that is becomes slower at around 5 dots ("counti...
2003 Jan 20
0
quadratic trends and changes in slopes (R-help digest, Vol 1 #52 - 16 msgs)
...m> To: r-help at stat.math.ethz.ch Subject: [R] quadratic trends and changes in slopes I'd like to use linear and quadratic trend analysis in order to find out a change in slope. Basically, I need to solve a similar problem as discussed in http://www.gseis.ucla.edu/courses/ed230bc1/cnotes4/trend1.html .... RESPONSE: Since I'm in the process of switching from SAS to R, this was a good exercise for me. An R program to work the example you cited is appended. I hope this meets your needs. Chuck White # R program for working example at: # http://www.gseis.ucla.edu/courses/ed230bc1/cnotes...