Re: [R] Polychoric and tetrachoric correlation

2008-09-03 Thread Andy Fugard
is sufficiently large and the correlation isn't too close to 0 or 1, but it is probably not in general terribly trustworthy. I hope this helps, John Original message: Andy Fugard a.fugard at ed.ac.uk Mon Sep 1 19:25:54 CEST 2008 Hi there, Am I correct to believe

[R] Polychoric and tetrachoric correlation

2008-09-01 Thread Andy Fugard
? If this is true, how can one estimate 95% confidence intervals for the correlations? My guess would be mat = hetcor(dataframe) mat$correlation - (1.96 * mat$std.errors) mat$correlation + (1.96 * mat$std.errors) Thanks, Andy -- Andy Fugard, Postgraduate Research Student Psychology (Room S6

[R] String concatenation

2008-06-28 Thread Andy Fugard
Hi, Is the following function built in somewhere? concat = function(v) { res = for (i in 1:length(v)) res = paste(res,v[i],sep=) res } e.g. concat(c(12,3,45)) [1] 12345 Cheers, Andy -- Andy Fugard, Postgraduate Research Student Psychology (Room F3), The University

Re: [R] String concatenation

2008-06-28 Thread Andy Fugard
the trick - ta. A regards . On 2008-6-28, at 下午7:44, Andy Fugard wrote: Hi, Is the following function built in somewhere? concat = function(v) { res = for (i in 1:length(v)) res = paste(res,v[i],sep=) res } e.g. concat(c(12,3,45)) [1] 12345 Cheers, Andy -- Andy Fugard, Postgraduate