Displaying 2 results from an estimated 2 matches for "jobsat".
2011 Aug 27
2
Placing a column name in a variable XXXX
Hi everyone,
How does one place an object name (in this case a vector name) into another
object (while essentially masking the values of the first object?
For example:
> JOBSAT<-rnorm(40)
>
> CI<-function(x,alpha){
+ result<-cbind(x,mean=mean(x),alpha)
+ print(result)
+ }
> CI(JOBSAT,.05)
I want this to return:
Variable mean alpha
JOBSTAT 0.02844131 0.05
Instead, I am getting:
x mean alpha
[1,] -1.07694997 0.028...
2010 Oct 25
2
extracting characteristics of datasets from data()
..." "Sex, Occupation and Heart Disease"
[10,] "Heckman" "Labour Force Participation of Married Women 1967-1971"
[11,] "Hoyt" "Minnesota High School Graduates"
[12,] "ICU" "Death in the ICU"
[13,] "JobSat" "Cross-classification of job satisfaction by income"
[14,] "Mental" "Mental impariment and parents SES"
[15,] "Mobility" "Social Mobility data"
[16,] "TV" "TV Viewing Data"
[17,] "Vietnam"...