
Hello everyone
I really need some help here. I made a confidence ellipse using the function ellipse from the package ellipse:

ellipse(SD, centre=colMeans(pcsref),t=sqrt((p * (n-1)/(n-p))*qf(0.99, p,n-p))


Now, I want to write a function whom return TRUE or FALSE if a given observation is in the confidence ellipse. But I have no clue how to do it
Can anyone help me?

Best regards

Jessica


 		 	   		  
	[[alternative HTML version deleted]]

