[R] apply kendall tau to a split data set

John Kane jrkrideau at inbox.com
Sat Jul 25 13:52:48 CEST 2015


It helps to have a bit more detail and some sample data. Have a look at Reproducibility
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example and http://adv-r.had.co.nz/Reproducibility.html
for some ideas of how to pose a question on the list.

John Kane
Kingston ON Canada


> -----Original Message-----
> From: shah_suraj at hotmail.co.uk
> Sent: Fri, 24 Jul 2015 04:08:08 -0700 (PDT)
> To: r-help at r-project.org
> Subject: [R] apply kendall tau to a split data set
> 
> $`19179222`
>    Unique.ID    Start.Year                    L1.Risk.Category
> Gross.amount.sum
> 17  19179222       2013 Execution, Delivery & Process Management
> 161212.1
> 18  19179222       2015 Execution, Delivery & Process Management
> 110880.0
> 
> $`25182498`
>    Unique.ID   Start.Year                    L1.Risk.Category
> Gross.amount.sum
> 19  25182498       2014   Clients, Products & Business Practices
> 59384
> 20  25182498       2014 Execution, Delivery & Process Management
> 355000
> 21  25182498       2015 Execution, Delivery & Process Management
> 27720
> 
> $`32506027`
>    Unique.ID    Start.Year                L1.Risk.Category
> Gross.amount.sum
> 22  32506027       2003 Execution, Delivery & Process Management
> 3600000.0
> 23  32506027       2013 Execution, Delivery & Process Management
> 161212.1
> 24  32506027       2014   Clients, Products & Business Practices
> 14846.0
> 
> 
> Hi, I have split a data frame and output is as above.
> 
> I would like to apply Kendall's tau to calculate correlations. For
> example,
> for the last Unique.ID 32506027, I want to create a time series for each
> L1
> risk category, and then calculate the correlation between each L1 risk
> category using the Kendall tau approach.
> 
> Any help would be much appreciated.
> 
> Thanks
> s
> 
> 
> 
> 
> --
> View this message in context:
> http://r.789695.n4.nabble.com/apply-kendall-tau-to-a-split-data-set-tp4710303.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!



More information about the R-help mailing list