All Projects → 13bzhang → fbsample

13bzhang / fbsample

Licence: other
R Package for Quota Sampling on Facebook

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to fbsample

lo2s
Linux OTF2 Sampling - A Lightweight Node-Level Performance Monitoring Tool
Stars: ✭ 24 (-20%)
Mutual labels:  sampling
pewmethods
Pew Research Center Methods team R package of miscellaneous functions
Stars: ✭ 121 (+303.33%)
Mutual labels:  sampling
facebook-ruby-ads-sdk
The Facebook Marketing API in Ruby.
Stars: ✭ 59 (+96.67%)
Mutual labels:  facebook-marketing-api
samplics
Select, weight and analyze complex sample data
Stars: ✭ 24 (-20%)
Mutual labels:  sampling
variorum
Tool for hardware-level feature control
Stars: ✭ 21 (-30%)
Mutual labels:  sampling
ibs
Inverse binomial sampling for efficient log-likelihood estimation of simulator models
Stars: ✭ 22 (-26.67%)
Mutual labels:  sampling
bioinf-commons
Bioinformatics library in Kotlin
Stars: ✭ 21 (-30%)
Mutual labels:  sampling
Fraud-Detection-in-Online-Transactions
Detecting Frauds in Online Transactions using Anamoly Detection Techniques Such as Over Sampling and Under-Sampling as the ratio of Frauds is less than 0.00005 thus, simply applying Classification Algorithm may result in Overfitting
Stars: ✭ 41 (+36.67%)
Mutual labels:  sampling
sandy
Sampling nuclear data and uncertainty
Stars: ✭ 30 (+0%)
Mutual labels:  sampling
prospectr
R package: Misc. Functions for Processing and Sample Selection of Spectroscopic Data
Stars: ✭ 26 (-13.33%)
Mutual labels:  sampling
pg sampletolog
Postgres extension to sample statements or transactions to logs
Stars: ✭ 17 (-43.33%)
Mutual labels:  sampling
poisson-disk-sampling
Poisson disk sampling in arbitrary dimensions
Stars: ✭ 147 (+390%)
Mutual labels:  sampling
LindeBuzoGrayStippling
An interactive demo application for the algorithm proposed in our SIGGRAPH Asia 2017 technical paper.
Stars: ✭ 107 (+256.67%)
Mutual labels:  sampling
dingo
A python library for metabolic networks sampling and analysis
Stars: ✭ 29 (-3.33%)
Mutual labels:  sampling
sample
Performs memory-efficient reservoir sampling on very large input files delimited by newlines
Stars: ✭ 61 (+103.33%)
Mutual labels:  sampling
odoviz
3D Odometry Visualization and Processing Tool
Stars: ✭ 24 (-20%)
Mutual labels:  sampling
Orbit
C/C++ Performance Profiler
Stars: ✭ 2,291 (+7536.67%)
Mutual labels:  sampling
ChessPositionRanking
Software suite for ranking chess positions and accurately estimating the number of legal chess positions
Stars: ✭ 78 (+160%)
Mutual labels:  sampling

fbsample

R Package for Quota Sampling on Facebook

This R package makes it easier for one to conduct quota sampling via Facebook advertisements. fbsample serves two main functions. First, it allows one to specify which demographic groups to target. Second, it uses R wrapper functions in fbRads to create ads in batches and upload them via the Facebook Marketplace API.


Updates

3/18/2017: I added four helpful datasets in the data folder that include the ids and keys for ad targets. Now you can easily look up targets for level of education, ethnicity (US), politics (US), and US states/regions.

3/19/2017: Facebook has removed ethnic_affinity as an ad target category after receiving negative press. But you can still recruit people by ethnic affinity using the behavior category. I removed ethnic_affinity as a parameter from the function create_target to reflect this change. To sample white respondents, you would need to exclude all the minority ethnic affinity groups. I am providing this information for social scientific purposes only. Don't use the functionality for racist purposes!


In a nutshell

Facebook allows advertisers to target audiences by demographic groups. Using the Facebook Marketing API, researchers can create ads that target a large number of strata for quota sampling. Researchers recruit respondents by advertising their online survey using Facebook ads.

Understanding the structure of Facebook ad campaigns

Facebook ad campaigns have a three-level structure. For the purposes of quota sampling, each sampling project is a Campaign. The Campaign objective determines how you pay to recruit respondents. For instance, you can pay for per completed survey using the conversion objective or you can pay for clicks to your survey link.

Targeting of individual strata occurs at the Ad set level. For each Ad set, you input the demographics of the strata and how much you are willing to spend to advertise to that strata. Finally, for each Ad set, you create an Ad that uses an Ad Creative (ad text, image, and survey link) to recruit respondents.

How to quota sample using Facebook ads

  1. Set up a Facebook Page so you can create and manage ads.

  2. Create a Facebook App and authorize it to manage the ads of your Facebook Page. Follow the directions outlined in fbRads to crate your Facebook App and connect with the OAuth token.

  3. Draft a post for your Facebook Page that you will use as your Ad Creative. The post should contain a catchy image, a short description of your survey, and a link to your survey. Do not publish the post but instead save it as a draft to be published later as part of your ad.

  4. Use fb_campaign in fbRads to create a Campaign for your quota sample. All ads will be a part of this campaign.

  5. Use create_target in fbsample to create demographic targets for each strata in your quota sample. In addition to each strata's demographics information, you should also provide information about how much you plan to spend on each strata.

  6. Use batch_strata_ads in fbsample to create ads for each strata in your quota sample. For each strata, the function creates an Ad set and an Ad.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].