search for: pvallamascore

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

2000 Apr 05
2
My first R-program
Sorry, I pasted the wrong file in earlier... this is the correct one: pValCalculator(b, n=20, m=20) { ind <- 1:min(c(n,m)) prob <- (1-pnorm(b,sd=std*sqrt(ind))) prob1 <- sum((n-ind+1)*(m-ind+1)*prob) prob1 } inputData <- scan("/users/lvssso/projects/LAMA/output/pValLamaScore.tmp", list(block1 = "",block2 = "",width1 = 0,width2 = 0,alignment = 0,score = 0)); pVal <- vector(mode = "numeric", length(inputData$score)); for(i in 1:length(inputData$score)) pVal[i] <- pValCalculator(inputData$score, inputData$width1, inputData$widt...
2000 Apr 05
0
My first R program
...ht. I keep getting an error message from 'parse' on the line with the *** : pValCalculator(b, n=20, m=20) { ind <- 1:min(c(n,m)) prob <- (1-pnorm(b,sd=std*sqrt(ind))) prob1 <- sum((n-ind+1)*(m-ind+1)*prob) prob1 } inputData <- scan("/users/lvssso/projects/LAMA/output/pValLamaScore.tmp", list(block1 = "",block2 = "",width1 = 0,width2 = 0,alignment = 0,score = 0)); pVal <- vector(mode = "numeric", length(lamaScore)); for(i in 1:length(inputData$lamaScore) ***** pVal[i] <- pValCalculator(inputData$score, inputData$width1, inputData$wi...