Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get critical value with native julia code? #828

Closed
phpsmarter opened this issue Aug 25, 2022 · 1 comment
Closed

How to get critical value with native julia code? #828

phpsmarter opened this issue Aug 25, 2022 · 1 comment

Comments

@phpsmarter
Copy link

Can not find native method to get critical value of t-test

At now just use R language function

  function get_criticalvalue(df,alpha=0.05)
       @rput df alpha
        R"""
	    res<-qt(p=alpha/2, df=df, lower.tail=FALSE)
        """
        return @rget  res
  end
@ararslan
Copy link
Member

Hi @phpsmarter, please direct usage questions to the Julia Discourse; we use the issue tracker for bug reports and feature requests.

In this case, note the R function you're calling: qt, which retrieves quantiles from the t-distribution. In Julia, distributions are provided by the Distributions package, which extends quantile from Statistics to provide this functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants