I\'m new to R and don\'t have much background in statistics, but my graduate study is related to statistics and I\'m currently working on constructing an index (similar to c