Blog Archives

Scatter plots in survey sampling

November 27, 2017
By
Scatter plots in survey sampling

You can find this post in Blogdown format by clicking hereWhen it comes to analyzing survey data, you have to take into account the stochastic structure of the sample that was selected to obtain the data. Plots and graphics should not be an exception. ...

Read more »

dplyr and the design effect in survey samples

November 21, 2017
By

Blogdown entry here.For those guys like me who are not such R geeks, this trick could be of interest. The package dplyr can be very useful when it comes to data manipulation and you can extract valuable information from a data frame. For example, when ...

Read more »

Automatic output format in Rmarkdown

November 19, 2017
By
Automatic output format in Rmarkdown

I am writing a Rmarkdown document with plenty of tables, and I want them in a decent format, e.g. kable. However I don't want to format them one by one. For example, I have created the following data frame in dplyrdata2 %__% group_by(uf) %__% sum...

Read more »

Sampling weights and multilevel modeling in R

June 15, 2017
By

So many things have been said about weighting, but on my personal view of statistical inference processes, you do have to weight. From a single statistic until a complex model, you have to weight, because of the probability measure that induces the var...

Read more »

Small Area Estimation 101

April 16, 2017
By

Small area estimation (SAE) has become a widely used technique in official statistics since the last decade of past century. When the sample size is not enough to provide reliable estimates at a very particular level, the power of models and auxiliary ...

Read more »

Gelman’s MrP in R – What is this all about?

January 15, 2017
By

Multilevel regression with poststratification (MrP) is a useful technique to predict a parameter of interest within small domains through modeling the mean of the variable of interest conditional on poststratification counts. This method (or methods) w...

Read more »

3PL models viewed through the lens of total probability theorem

January 1, 2017
By
3PL models viewed through the lens of total probability theorem

As I currently am the NPM for PISA in Colombia, I must assist to several meetings dealing with the proper implementation of this assessment in my country. Few of them are devoted to the analysis of this kind of data (coming from IRT models). As usual, ...

Read more »

Computing Sample Size for Variance Estimation

December 24, 2016
By
Computing Sample Size for Variance Estimation

The R package samplesize4surveys contains functions that allow to calculate sample sizes for estimating proportions, means, difference of proportions and even difference of two means. It also permits the calculation of sample error and power level for ...

Read more »

Highlighting R code for the web

December 3, 2016
By

When blogging about statistics and R, it is very useful to differentiate the body text to R code. I used to manage this issue by highlighting the code and pretty-R was a valuable instrument from Revolutions Analytics to accomplish this. However, as you...

Read more »

How important is that variable?

December 3, 2016
By

When modeling any phenomena by including explanatory variables that highly relates the variable of interest, one question arises: which of the auxiliary variables have a higher influence on the response? I am not writing about significance testing or s...

Read more »

Search R-bloggers

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)