Mathatistics
/
Recent content on MathatisticsHugo -- gohugo.ioen-usMathatisticsMon, 29 Mar 2021 00:00:00 +0000How ANOVA analyze the variance
/posts/how-anova-analyze-the-variance/
Mon, 29 Mar 2021 00:00:00 +0000/posts/how-anova-analyze-the-variance/Often we Analysis of Variance (ANOVA) to analyze the variances to find if different cases results in similar outcome and if the difference is significant. Following are some simple examples,
The effect of different diets on growth of fishes Comparing the height of three different species of a plant Type of flour used for baking a bread These are some common examples where in some cases data are collected by setting up an experiment and in other cases they are collected through sampling.Interpreting Biplot
/posts/interpreting-biplot/
Sat, 18 Mar 2017 00:00:00 +0000/posts/interpreting-biplot/Obviously, the name suggests itself that there are two aspect of data plotted in latent scale. Biplot in case of principal component analysis (PCA) plot both variable and observation in latent scale (scores and loadings). Throughout this article, I will use USArrests data from datasets package. Lets fit a PCA model using princomp function. However, this can also be done using prcomp. The later one uses singular value decomposition while the former one uses eigenvalue decomposition.Model assessment and variable selection
/posts/model-assessment-variable-selection/
Sun, 05 Mar 2017 00:00:00 +0000/posts/model-assessment-variable-selection/Whenever we add a variable in our model, we are not only adding information but also noise that clutter the information and makes the analysis difficult. Simpler model is always better since they contain less noise and they are easy to interpret. In real life, things are not that simple. But relax, there are statistical methods that make model assessment and perform variable selection and gives optimal set of variables for us.Basic Scatter Plot and linear fitted line
/posts/basic-scatter-plot-with-reg-line/
Wed, 01 Mar 2017 00:00:00 +0000/posts/basic-scatter-plot-with-reg-line/Lets scatter into some points created by data in xy-space. Data are scattered everywhere but what relation is there between some specific variable with other. Cutting down to simple talking and stick to the heading, we can use mtcars dataset in R.
The dataset from Motor Trend US magazine, 1974 comprises fuel consumption and 10 various aspects of automobile design and their performance for 32 automobiles of different models.Create LaTeX, HTML and Markdown tables in R
/posts/latex-html-tables-in-r/
Wed, 01 Mar 2017 00:00:00 +0000/posts/latex-html-tables-in-r/R can do data analysis and it can create beautiful reports. You can build all these documents directly in R using rmarkdown which is powered by powerful pandoc. In lots of occasions, user just wants to get some output format of tables that we can use in other platform such as Microsoft word, LaTeX, HTML or Markdown. Here I will discuss about some packages that helps us doing so including xtable, pander, knitr, stargazer and tables.Using Data from different Packages
/posts/dataset-in-r/
Wed, 01 Mar 2017 00:00:00 +0000/posts/dataset-in-r/Most of the time we need data either for teaching purpose or learning things. Whatever be the reason, data are really important things. R and different packages of R contains different datasets which we can use directly just by installing them. Many books related to R illustrate there examples using these data sources. We can find the dataset from differnt sources as data()
The datasets from the package datasets and other loaded packages is shown in default.About me
/about/
Wed, 24 Aug 2016 17:51:42 +0000/about/Hi! I’m Raju, I am a Research Fellow at Norwegian University of Life Sciences (NMBU), Ås, Norway. I am passionate about the analysis and visualizations of data and information. My research and work interest lies in the intersection of statistics, web and programming.
I am from Nepal and currently I am living in Norway with my wife and a kid. I am working on my PhD thesis. It is about the comparative analysis of multivariate methods in statistics.LaTeX autocompletion in RStudio
/posts/latex-autocomplete-rstudio/
Thu, 25 Feb 2016 00:00:00 +0000/posts/latex-autocomplete-rstudio/When I was working on my Masters thesis, I needed the latex autocompletion feature in Rsudio, but could not find it anywhere. There is no option to create custom snippet either. But recently I found some basic and necessary auto-completion for latex is available in RStudio. Following are some of the these you want to use, but remember to press Shift + Tab for autocomplete. Further this will only work on sweave or knitr file only, which is pretty obvious.Scatter plot with multiple group
/posts/scatter-plot-multple-group/
Tue, 12 Jan 2016 00:00:00 +0000/posts/scatter-plot-multple-group/In many situations, it becomes essential to have a plot with multiple categories. For example, colour the scatter plot according to gender and have two different regression line for each of them.
Lets scatter the some points using data from mtcars, available default in R. Continuing the discussing from this post, where we had plotted mile per gallon (mpg) vs displacement (disp). Here we will create a separate regression line and colour the points accordingly based on number of cylinder (cyl) in the cars.