search for: varxj

Displaying 1 result from an estimated 1 matches for "varxj".

Did you mean: varx
2006 Jul 11
1
test regression against given slope for reduced major axis regression (RMA)
...s. ### ### XjArray = [0 0.9 1.8 2.6 3.3 4.4 5.2 6.1 6.5 7.4] ### YjArray = [5.9 5.4 4.4 4.6 3.5 3.7 2.8 2.8 2.4 1.5] ### ### Output: ### ### A list with the following: ### ### sumXjYj As Double ### sumXj As Double, sumYj As Double ### sumXjSquared As Double, sumYjSquared As Double ### n As Long ### varXj, varYj ### output(7) ### ### ============================================================ sumXjYj <- 0 sumXj <- 0 sumYj <- 0 n <- 0 n <- length(XjArray) sumXjSquared <- 0 sumYjSquared <- 0 covariancexy <- 0 for(i in 1:n){ sumXjYj <- sumXjYj + Xj...