Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8998167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:59:15+00:00 2026-06-15T23:59:15+00:00

How would I go about creating a line from the t-table in R, after

  • 0

How would I go about creating a line from the t-table in R, after running a simulation for a t distribution? In essence, I want to perform the qt function using only values calculated from a random sample from the normal distribution, rather than using the confidence levels as inputs.

I have run a simulation on a t(degrees of freedom “df”) distribution 5000 times, and I want to take these values and use them to recreate the line in the t-table corresponding to the df. Having trouble trying to figure it out.

Any help is greatly appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:59:16+00:00Added an answer on June 15, 2026 at 11:59 pm

    The quantile function will give you the values equivalent to those in the t-tables I have used:

    quants <- 1-c(0.2, 0.1, 0.05, 0.025, 0.01, 0.005, 0.001)
    n <- 15
    
    sims <- replicate( 5000, {x <- rnorm(n); sqrt(n)*mean(x)/sd(x)} )
    
    (t.table <- quantile(sims, quants) )
    
    ## compare
    
    rbind( t.table, qt( quants, n-1 ) )
    
    pt(t.table, n-1)
    

    These are the areas to the left, the common t-tables give the area to the right, we can change the labels to match this with names(t.table) <- 1-quants. Change quants to match your particular table (and increase the number of simulations if you want closer matches).

    The simulation in this case could possibly be sped up by simulating a whole matrix of normals in 1 step then using tools like rowMeans.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How would I go about creating a menu (complex, simple, etc - doesn't matter
how would i go about creating a many-many relationship among data objects in google
How would I go about creating a tripcode system (secure) for a message board
In relation to this stackoverflow question , how would I go about creating my
How would you guys go about creating a real-time search engine on .Net platform.
Just a quick question about how you would go about implementing this. I want
I was wondering how one would go about developing a website from scratch with
How would I go about creating an AppleScript command that when I just run
Just wondering how you would go about creating the effect as seen in the
I am creating an ArrayAdapter<String> from a resource array. Then I would like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.