What is the matlab code for this R code?

1 visualización (últimos 30 días)
AZAL
AZAL el 10 de Mayo de 2016
Comentada: AZAL el 10 de Mayo de 2016
Hey all; Below is a code I wrote in R and I want to write it in MATLAB. Any one can help?
if (DD>0) {
IC1= (-B-sqrt(DD))/(2*A)
IC2= (-B+sqrt(DD))/(2*A)
if (A>0) {
rej_fi=rej_fi+(Theil0>IC2 | Theil0<IC1)/nrepet
}
if (A<0) {
rej_fi=rej_fi+(Theil0>IC2 & Theil0<IC1)/nrepet
}
}
Thank You in Advance!

Respuesta aceptada

Ahmet Cecen
Ahmet Cecen el 10 de Mayo de 2016
if DD>0
IC1= (-B-sqrt(DD))/(2*A)
IC2= (-B+sqrt(DD))/(2*A)
if A>0
rej_fi=rej_fi+(Theil0>IC2 || Theil0<IC1)/nrepet
end
if A<0
rej_fi=rej_fi+(Theil0>IC2 && Theil0<IC1)/nrepet
end
end

Más respuestas (0)

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by