Re: [R] Generating random data with non-linear correlation between two variables

2016-04-08 Thread hd625b
Hello, I changed the last 3 lines from v1 and v2 to myData$v1 and myData$v2. Creating the vectors in not a problem. Where you will run into issues is when you create the data.frame. The length of v1 is 1001 and the length of v2 is 651. The warning message below is telling us that the lengths of

Re: [R] Generating Hotelling's T squared statistic with hclust

2016-04-08 Thread hd625b
I believe the package "rattle" can do this. If not, see page 5 of the PDF below. https://cran.r-project.org/web/packages/Hotelling/Hotelling.pdf On 04/08/2016 06:54 AM, Michael wrote: I am doing a cluster analysis with hclust. I want to get hclust to output the Hotelling's T squared statisti

Re: [R] R.squared in summary.lm with weights

2016-04-07 Thread hd625b
Do you mean w <- z$residuals ? Type names(z) to see the list of item in your model. I ran your code on a lm and it work fine. You don't need the brackets around mss <- Michael Long On 04/07/2016 02:21 PM, Murray Efford wrote: Following some old advice on this list, I have been reading the c