Description Usage Arguments Value See Also Examples
Transform each variable in a data matrix to normal scores and finding the adjustment so that mean of squares of scores is 1.
1 2 | nscore(data,iopt=F)
nscoreOpta(n,mxiter=20, eps=1.e-4,iprint=F)
|
data |
data matrix or data frame |
iopt |
iopt=T to use adjustment 'a' in nscoreOpta that makes normal scores have mean of 0 and variance of 1; default is iopt=F in which case a=-0.5 is used |
n |
sample size |
mxiter |
maximum number of iterations |
eps |
tolerance for stopping |
iprint |
print flag for iterations |
data matrix with same number of columns as input for nscore
number near -0.5 for nscoreOpta
1 2 3 4 5 | set.seed(123)
x=matrix(rnorm(40),20,2)
z=nscore(x)
nscoreOpta(100) # -0.5766102
nscoreOpta(1000) # -0.5522775
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.