JSON File in R

JSON file in R is stored as an R list. JSON stands for JavaScript Object Notation. The JSON file is consists of the data as text in a human-readable format. Install rjson Package You can install the R JSON package with the following command in the R console. Input Data Create a JSON file by … Read more

Distribution in R

There are two types of distribution in R as follow: Normal Distribution Binomial Distribution Normal Distribution in R The random collection of data from independent sources is known as normal distribution in R. Now we know that we will get a bell shape curve if we plot a graph with the value of the variable … Read more

Web Data in R

We can scrap and save web data in R. Every website has its own identity to provide data for the availability of its user in the form of XML, CSV, and txt files. You can filter specific data from that website with the help of R programming. “RCurl” XML” and “String” are packages that are … Read more

Data Reshaping in R

The data reshaping in R is the name of changing the data organized in rows and columns. Data processing is done by taking the input as a data frame. It is the easiest method to extract data from the rows and columns of the data frame, but here is a problem when you want a … Read more

R Data Frame

Data is displayed in the format of the table in the R data frame. There are different data types inside the R data frames. The character can be the first column, second and third can be numeric or logical. However, each column must have the same type of data. Following are some R data frame … Read more

Poisson Regression in R

For modeling events, the Poisson Regression in R is used where the outcomes are counts. The count data is discrete data with non-negative integer values that count things, such as the number of people in line at the grocery store.  The basic mathematical equation for Poisson regression in R is as follow: Here: y is the … Read more

Multiple Linear Regression in R

Multiple Linear Regression in R is an extension of linear regression in the relationship between two or more variables. In linear regression, we have one input and done output, but in multiple linear regression in R, we have more than one predictor and one outcome. The mathematical equation for multiple regression is as follow: Here: … Read more

Nonlinear Least Square

Nonlinear Least Square for used in regression in R. We see that it is a rare case that the equation of the model is a linear equation giving a linear graph when we used regression analysis for real-world data. Because mostly the model equation of real-world involves higher degree mathematical functions like an exponent of … Read more

Chi-Square Test

To analyze the frequency table Chi-Square Test is used. This table is formed by two categorical variables. This test is used to check whether there is a significant relationship between these two variables. The variable may be from the same population or maybe categories like On/Off, Male/Female, etc. The chisq.test() function is used to perform this test … Read more

Linear Regression in R

Linear Regression in R predicts the output of the y variable based on one or more input x variables. In simple words, it is used to establish a relationship between output and input variables. The input and output variables are related through an equation in which the exponent of both these variables is 1. A … Read more