pt function

The pt() work in R Language is utilized to return the likelihood aggregate thickness of the Student t-distribution.

Syntax: pt(x, df)

Parameters:    

  • x: is a variable
  • df: level of opportunity   or   degree of freedom

Example:

This example, tells the best way to draw the aggregate circulation work (CDF) of a Student t appropriation. As in the past model, we first need to make an information vector and apply the pt capacity to this input vector to make the relating CDF values and at long last, we can apply the plot capacity to draw a realistic addressing the CDF of the Student t distribution in R

R




# Here Specify the x-values for pt function
x_pt <- seq(- 15, 15, by = 0.004)     
  
# Apply pt function
y_pt <- pt(x_pt, df = 8)       
  
# Now Plot pt values   
plot(y_pt)


Output:

 

A Guide to dt, qt, pt, & rt in R

In this article, we are going to discuss the dt, qt, pt, and rt function of the Student’s t-distribution in the R programming language

Similar Reads

dt function:

The capacity dt returns the worth of the likelihood thickness work (pdf) of the Student t circulation given a specific arbitrary variable x and levels of opportunity df. The linguistic structure for utilizing dt is as per the following:...

pt function:

...

qt function:

...

rt function:

...