Displaying 2 results from an estimated 2 matches for "antisoc".
2013 Mar 29
1
pairs(X,Y) analog of cor(X,Y)?
With a data frame containing some X & Y variables I can get the between
set correlations
with cor(X,Y):
> cor(NLSY[,1:2], NLSY[3:6])
antisoc hyperact income educ
math 0.043381307 -0.07581733 0.25487753 0.2876875
read -0.003735785 -0.07555683 0.09114299 0.1884101
Is there somewhere an analog of pairs(X,Y) that will produce the pairwise
plots of each X against each Y?
The formula method for pairs() is for a one-sided formula...
2013 Mar 29
3
weird error with a lazyload .RData file in a package
...promise evaluation
>
But it works if I load directly from the file I imported into the package:
> load("NLSY.RData")
> str(NLSY)
'data.frame': 243 obs. of 6 variables:
$ math : num 50 28.6 50 32.1 21.4 ...
$ read : num 45.2 28.6 53.6 34.5 22.6 ...
$ antisoc : int 4 0 2 0 0 1 0 1 1 4 ...
$ hyperact: int 3 0 2 2 2 0 1 4 3 5 ...
$ income : num 52.52 42.6 50 6.08 7.41 ...
$ educ : int 14 12 12 12 14 12 12 12 12 9 ...
What could cause this?
--
Michael Friendly Email: friendly AT yorku DOT ca
Professor, Psychology Dept. & Chair, Qua...