Thursday 11 January 2007

Weighting data

The WEIGHT command stimulates case replication by treating each case as if it were actually the number of cases indicated by the value of the weight variable. Weight variable can be used to (1) adjust the distribution of cases to more accurately reflect the larger population or (2) to simulate raw data from aggregated data.

In first case, sample data contains following distribution; 52% males and 48% females, but in reality gender distributes as 49% males and 51% females.

[Syntax]
DO IF gender='male'.
- COMPUTE weightvar=49/52.
ELSE IF gender='female'.
- COMPUTE weightvar=51/48.
END IF.
WEIGHT By weightvar.
FREQ variables=gender.
[/Syntax]

DO IF structure sets value of weightvar for males (49/52; 0.94) and different value for females (51/48). The formula used is: desired proportion/observed proportion.

In second case of simulating raw data from aggregated file, variable count will be weight variable.

[Syntax]
DATA LIST LIST /income gender count.
Begin data
1, 1, 25
1, 2, 35
2, 1, 30
2, 2, 10
END DATA.
Value labels
Income 1 'under $50K' 2 '$50K+'
Gender 1 'Male' 2 'Female'.

Weight BY count.

CROSSTABS TABLES=income by gender.

[/Syntax]

Variable count corresponds with the original frequency of the cases.

19 comments:

AnnaG said...

Hi there,
Could you please advise me how can I weigh variables (not cases! as we usually do) in SPSS?
The issue is how to get the influence scores of 6 factors (using regression model) on overall customer satisfaction if respondents can skip some of the factors if they're not applicable. So the sample size for each factor is different and the samples are not quite comparable because they consist of different respondents. But we still need to find out which factors drive the overall satisfaction most of all.
Is weighting variables suitable for this?Or is there any other good solutions? Thanks a lot. Anna

huang said...

Reliable and Professional China USB Flash Disk manufacturing company, they have

all types of USB Flash Disk, Logo USB,

gethqnet said...

Thanks for such a great post and the review, I am totally impressed! Keep stuff like this coming.
Michael Jackson

Designer Handbags said...

Thanks.Your article is wonderful!Hold it.i like your article very much and here i intraduce some nice web site for you .
welcome come to the nice web:

Buy wholesale shoes
gucci womens handbags
coogi jeans
wholesale jeans

stainless steel pipe fittings said...

A wonderful article. In my life, I have never seen a man be so selfless in helping others around him to get along and get working.

Unknown said...

Welcome to http://www.lovedigitizing.com, we will offer best service and quality for your embroidery digizing. Please believe Love Embroidery Digitizing will be your best partner.

r4i said...

thanks for sharing.

handbags said...

nice site.

Unknown said...

Nowadays many people are worried about weight. Why not do some outdoor sports to keep slim: http://j.mp/aP6YWC.

Anonymous said...

The Coach handbags
have usually been popular for their awesome seems and excellent superior. The Coach Wristlet
company is put in the Nye that started out as a very little and family, these large Coach Ergo
are highly low-priced. One of the most popular handbags you can buy today is a Coach Hamptons

China heat pump industry analytics said...

Comming up is commercial heat pumps, mainly for big buildings. Profiting from goverment encouragement, heat pumps, as energy efficient products, have many opportunities in case the big buiding's water heating system is inviting bidding.

The final markets of air water heat pumps is family customers, I think. Personal consumers are not experts, and surely they are the last who know heat pumps. domestic heat pumps are for family shower, floor heating, or space heating. So far, shower is the main usage. Apparently, update to heat pumps in residential houses is a trend, so the market of domestic heat pumps is very huge. Usually their COP reache 4 or more.

Besides, swimming pool heat pumps are good enough for warm a pool in your yard.

Above is for heat pump China.

An air water heat pump is a new style energy saving product. We can find in shop a domestic heat pump, on buiding we can see a commercial heat pump, and in swimmin pool there is a swimming pool heat pump, and so on.

moncler jackets said...

I love it too!

eshoptopnet said...

Game Accessories are sold like hot cakes!
Do you need PSP 64MB memory cards? wii gun and other wii items? We can supply that kind of hot selling game products. It's no doubt that we can help you of larger market share of this kinds of products as we are specialist in it.We are your best choice. Please be confident of our mutual benefit and bright business future !
Wholesaler : http://www.eshoptop.net

Unknown said...

ugg blackberry combines fashion with function to create a
great comfortable classic ugg bomber.
With corset-style lacing up the back the ugg birch offers
comfort and durability with twin-faced sheepskin and a molded rubber outsole for traction and a suede heel guard.

Anonymous said...

Your internet site is surely certainly one of the most efficient . Total impression of the page is actually amazing .
Pasadena Locksmiths
Locksmith Wellington FL
Locksmith Union City CA
Locksmith RedwoodCity
RedwoodCity locksmith
RedwoodCity locksmith
Locksmith RedwoodCity CA
Locksmith RedwoodCity
North Chicago Locksmith
Locksmith North Chicago
North Chicago Locksmith
North Chicago Locksmith
Locksmith North Chicago
Locksmith North Chicago
Locksmith North Chicago
North Chicago Locksmith
North Chicago Locksmith
North Chicago Locksmith
Locksmith North Chicago IL
North Chicago Locksmith
Locksmith North Chicago IL
Locksmith North Chicago
locksmiths fort worth
irvine locksmiths
locksmith aventura
irvine locksmiths
irvine locksmiths
irvine locksmiths
irvine locksmiths
locksmiths fort worth
irvine locksmiths
locksmiths fort worth
Aventura FL locksmith
mesquite locksmiths
mesquite tx locksmith
Aventura FL locksmith
Aventura FL locksmith
mesquite tx locksmith

nfl hats said...

Great information you’ve provided us with here. Thanks so much for sharing. Nice site too

Anonymous said...

end of tenancy cleaning There are a lot of house-hold ingredients that you can use for cleaning. Using them will make your cleaning process eco-friendly and green. Few of you know that commercial cleaning products contain toxins that are harmful for you and your family, they can cause asthma and some allergic reactions, when breathing harsh chemical fumes for too long time. This can be very dangerous, when having small babies and toddlers at home. post tenancy cleaning

Cheap jordan said...

Posts Tagged ‘winter wear’
If youre wondering why an exclusive custom made clothing store like us would include a line of winter wear in our services, then you have yet to understand the depth of our dedication and service to our valued customers. Global business travelers can have a one-stop shopping experience at our store by simultaneously picking up ALL their winter necessities, along with their suits.[url=http://www.buyinb2c.com] cheap air max shoes,wholesale air max shoes[/url]
[url=http://www.wearfoot.com] cheap coach handbags,cheap coach purses,only 40USD[/url]
[b][url=http://www.buyinb2c.com]AF men jeans,cheap AF jeans,DG mean jeans[/url][/b]

Buy Contact Lenses said...

Very informative, keep posting such good articles, it really helps to know about things.