Mathatistics
/
Recent content on MathatisticsHugo -- gohugo.ioen-usMathatisticsThu, 26 May 2022 00:00:00 +0000Comming Soon
/writings/comming-soon/
Thu, 26 May 2022 00:00:00 +0000/writings/comming-soon/My writings will appear here!!Convert list of array/matrix into an array in R
/blog/convert-list-of-array-matrix-into-an-array-in-r/
Fri, 18 Mar 2022 00:00:00 +0000/blog/convert-list-of-array-matrix-into-an-array-in-r/Array and matrix/tables are data structures in R with same data types such as numeric, string or boolean. This examples show how to convert a list of vector/matrix/array into a multi-dimentional array so that it will become easier to aggregate them in particular dimension. We can also do this converting everything into data frame but this way can be useful sometimes and is worth learning.
Let us use a dataset already available in R and convert that into a list of tables or matrix.How ANOVA analyze the variance
/blog/how-anova-analyze-the-variance/
Mon, 29 Mar 2021 00:00:00 +0000/blog/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
/blog/interpreting-biplot/
Sat, 18 Mar 2017 00:00:00 +0000/blog/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
/blog/model-assessment-variable-selection/
Sun, 05 Mar 2017 00:00:00 +0000/blog/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
/blog/basic-scatter-plot-with-reg-line/
Wed, 01 Mar 2017 00:00:00 +0000/blog/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. I will try to obtain the scatter plot for the model and the fitted line for the model.Create LaTeX, HTML and Markdown tables in R
/blog/latex-html-tables-in-r/
Wed, 01 Mar 2017 00:00:00 +0000/blog/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
/blog/dataset-in-r/
Wed, 01 Mar 2017 00:00:00 +0000/blog/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.Hi! I'm Raju,
/about/
Wed, 24 Aug 2016 17:51:42 +0000/about/As a postdoctoral fellow, I am currently working on trend in melanoma tumour thickness and prognostic factors in Norway at Biostatistics Department of University of Oslo. Communicating complex scientific problems and their solutions in a easy to understand language through visualization and illustration has alwyas been my passion. Thus, my research interest lies in the intersection of statistics, data visualization, web and programming.
I live in Drammen, a beautiful city in Norway, with my wife and a son.LaTeX autocompletion in RStudio
/blog/latex-autocomplete-rstudio/
Thu, 25 Feb 2016 00:00:00 +0000/blog/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
/blog/scatter-plot-multple-group/
Tue, 12 Jan 2016 00:00:00 +0000/blog/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.Curriculum viete
/cv/
Mon, 01 Jan 0001 00:00:00 +0000/cv/Passionate about data analysis and visualisations with strong technical and interpersonal skills for working in a team. Searching career in the intersection of statistics, web and programming.My Photography
/photography/
Mon, 01 Jan 0001 00:00:00 +0000/photography/ Previous Next