Questions tagged [weighted-data]

Datasets where different pieces of data can have different "weights", i.e. different importance.

When weights are put on cases/observations/rows, they may indicate different probabilities of selection or response in complex surveys; different accuracy of the underlying observations. A useful resource describing the various type of the observation weights is http://www.ats.ucla.edu/stat/stata/faq/weights.htm.

Another situation when the weights are attached to a unit (row in the data) arises in importance sampling when the weight is the ratio of the target density (that is difficult to sample from) to the convenient sampling density.

When weights are put on variables/columns/traits (regression weights, factor analysis weights, neuron input weights, etc.), these are model coefficients. Please tag your question with the model-specific tag in that situation, and avoid this tag when your weights are attached to variables/columns rather than observations/cases/rows.

200 questions
1
vote
1 answer

Weighting hospital visit (independent variable)

I am interested in profiling patients that has high number of hospital visits in a year. However, I noticed that not all hospital visits are equal. That is, an inpatient visit is more expensive than an outpatient visit. In addition, an inpatient…
tatami
  • 855
  • 1
  • 9
  • 27
1
vote
0 answers

Weighting country-year based data

I need to run a regression analysis using a data set on incidents of war. Data are collected on a country-year format, and go back hundreds of years. My question is: some countries have gone to war only once, whereas others fought 10 or more. Under…
neutral
  • 133
1
vote
2 answers

Weighting cases on two different level

I work on Eurobarometer data. There are weights for countries but some countries are divided in parts with specific weights to reconstitute the whole. I need to apply the latter first and the former afterwards. I do not know how to do that. Example:…
Pier
  • 41
0
votes
1 answer

How to calculate the weighted value to give numbers?

Big picture question: How do I calculate the weight to give certain categories? Specifics: I have data for 70 counties, population in each county, and then number of sales in each county. How do I create the weighted value for each county? To give…
0
votes
0 answers

Calculating CAC with weighted Laspeyres index

I am trying to figure out the best approach to accurately measure customer acquisition cost (CAC) performances for multiple acquisition types when I only have one total spend. To better visualize: May (Base Month) Spend = 50,000 dollars Phone Leads…
cphill
  • 159