Displaying 3 results from an estimated 3 matches for "centeringv".
Did you mean:
centering
2020 Oct 13
1
Please need help to finalize my code
...lt;petr.pikal at precheza.cz <mailto:petr.pikal at precheza.cz> > a ?crit :
Hi.
Maybe you will get better answers, but from your code it seems to me that you are treating R as C or other similar language which is not optimal. Considering your first 9 lines, it could be changed either to
CenteringV <- function(X, Ms, n) X-Ms
or you probably could use functions sweep or scale.
Your other code is beyond my experience, sorry.
Cheers
Petr
> -----Original Message-----
> From: R-help <r-help-bounces at r-project.org> On Behalf Of Ablaye Ngalaba
> Sent: Saturday, October 10, 202...
2020 Oct 10
3
Please need help to finalize my code
...f X.
130)centering redescription function phi(Xkl) or the kernel k(. , .)
131)Vijkl always using the kernel function as precedent
132)Vkl always using the kernel function as precedent
I look forward to your help and sincere request.
Yours sincerely
library(MASS)
1 CenteringV<-function(X,Ms,n){
2 # this function centers the data of X
3 X1=X*0
4 for (i in 1:n){
5 X1[i,]=X[i,]-Ms
6 }
7 return(X1)
8 }
9 # Function N?2
10 SqrtMatrix0<-function(M) {
11 # This function allows us to compute the square root of a matrix
12 # using the decomposition M=PDQ where Q is the i...
2020 Oct 13
0
Please need help to finalize my code
...t; petr.pikal at precheza.cz> > a ?crit :
>
> Hi.
>
> Maybe you will get better answers, but from your code it seems to me that
> you are treating R as C or other similar language which is not optimal.
> Considering your first 9 lines, it could be changed either to
>
> CenteringV <- function(X, Ms, n) X-Ms
>
> or you probably could use functions sweep or scale.
> Your other code is beyond my experience, sorry.
>
> Cheers
> Petr
>
> > -----Original Message-----
> > From: R-help <r-help-bounces at r-project.org> On Behalf Of Ablaye Ng...