correlation pvalue and index
Posted: Mon Dec 13, 2010 10:26 am
Hi,
1)How can I get the probability of the correlation coefficient significantly different from 0? I know, this is possible via the command: matrix_name.cor(prob), but how can I get it via a command with 2 series i.e. scalar cor_pvalue =@cor({%Y},{%X})?
2)In a vector V1 (extracted from correlation matrix) containing 5 correlation coefficient from variables (X1,to X5), I would like to identify the variable with a highest correlation coefficient.
How can I get the name of the variable? %selected_variable = @cimax(V1)?
Thanks
1)How can I get the probability of the correlation coefficient significantly different from 0? I know, this is possible via the command: matrix_name.cor(prob), but how can I get it via a command with 2 series i.e. scalar cor_pvalue =@cor({%Y},{%X})?
2)In a vector V1 (extracted from correlation matrix) containing 5 correlation coefficient from variables (X1,to X5), I would like to identify the variable with a highest correlation coefficient.
How can I get the name of the variable? %selected_variable = @cimax(V1)?
Thanks