user2333346
user2333346

Reputation: 1131

Equivalent R function for Matlab

I’m trying to find the following equivalent function for R in matlab

qt(p, df, ncp)

So I have probability, degree of freedom and delta. But in Matlab the function is only

tinv(y, nu)

That is

tinv(p, df)

So how can I calculate the same quantile function in Matlab

Upvotes: 2

Views: 857

Answers (1)

Dennis Jaheruddin
Dennis Jaheruddin

Reputation: 21563

It seems like you are looking for a way to calculate the quantiles for the noncentral student t distribution.

This can be achieved with nctinv:

X = nctinv(P,NU,DELTA)

I must admit it is a bit hard to find as there is no reference to this in the documentation of tinv.

Upvotes: 4

Related Questions