Library: | plot |
See also: | grspleplot dispspleplot |
Quantlet: | plotspleplot | |
Description: | plotspleplot runs spread and level plot |
Usage: | plotspleplot(data) | |
Input: | ||
data | n x p dataset |
library("plot") x=read("allbus.dat") man=paf(x,x[,1]==1)[,2] woman=paf(x,x[,1]==2)[,2] woman=woman|NaN.*matrix(rows(man)-rows(woman),1) x=man~woman plotspleplot(x)
there is a new window with spread and level plot and following output: [1,] " ------- Spread-and-level Plot------- " [2,] " slope of LN of level and LN spread " [3,] "--------------------------------------" [4,] " Slope = 0.338" [5,] "Power transf. est. 0.662"