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.

31 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

aiyipianni said...

Aston Villa rode their luck at Hull City where an 88-minute own goal from Kamil Zayatte saw them leapfrog three points clear of Arsenal and into fourth place in the Premier League wow gold with a 1-0 win.

Villa had to survive Hull penalty appeals for a handball against Ashley Young in time added on, television replays showing that referee Steve Bennett wow gold correctly rejected the claims after consulting a linesman.

Bennett had been involved in controversy after just five minutes when American goalkeeper Brad Friedel looked to have handed Hull the initiative and threaten Villa's return to the Champions League qualifying wow gold zone.

Friedel spilled wow gold the ball under pressure from Nick Barmby and stand-in right-back Nigel Reo-Coker turned it into his own net as he attempted to wow gold clear.

But Bennett cut short wow gold celebrations at the KC Stadium -- and let Friedel off the hook -- when he ruled out the score for an apparent infringement by Barmby.

Zayatte's intervention from a Young cross bound for wow gold Gabriel Agbonlahor then saw Villa leapfrog Arsenal and draw level with Manchester United on 38 points -- seven adrift of leaders Liverpool and four wow gold behind Chelsea.

Stung by an on-pitch dressing down wow gold by manager Phil Brown at Manchester City last week, Hull showed five changes and a vastly improved performance.

Promoted Hull were looking for only their second win in 11 games while wow gold Villa arrived unbeaten in seven and it looked to be heading for a goalless draw when the home side suffered a cruel late blow.

aiyipianni said...

South Africa inflicted the world of warcraft gold first home series defeat on Australia in almost 16 wow powerleveling years as they wrapped up a nine-wicket win over the world's number one ranked world of warcraft gold Test nation in Melbourne on Tuesday.

Captain Graeme Smith wow power leveling hit a fluent 75 as his side successfully passed a world of warcraft gold modest victory target of 183 on the final day at the MCG to take an wow powerleveling unassailable 2-0 lead.

It was the South dofus kamas African's first-ever Test series triumph in Australia and dofus kamas victory in the third and final match in Sydney will see them leapfrog the home side at the top of the global Lord of the Rings Online Gold rankings.

Hashim Amla LOTRO Gold (30 not out) scored the winning fly for fun penya runs shortly after lunch as South Africa flyff penya became the first team to overcome Australia at home Final Fantasy XI gilsince the West Indies in 1992-93.

South Africa ffxi gil were never under any pressure in eq2 plat their run chase and did not lose eq2 gold a wicket until just before lunch when the inspirational Smith Lord of the Rings Online Gold was trapped leg before wicket by Nathan LOTRO Gold Hauritz.

Smith had flyff penya dominated a 121-run opening stand flyff money with Neil McKenzie, hitting ffxi gil 10 boundaries.

McKenzie struggled to buy ffxi gil a half century and survived strong eq2 plat lbw shouts from Brett Lee, eq2 gold who was bowling despite an injured foot that will Lord of the Rings Online gold keep him out of the Sydney Test.

South Africa's LOTRO gold victory was set up by a brilliant maiden Test century fly for fun penya from JP Duminy, who shared a stunning flyff penya 180-run ninth wicket partnership with pace bowler Dale Final Fantasy XI gil Steyn.

It gave the tourists ffxi gil a priceless 65-run lead on first innings before man of eq2 plat the match Steyn worked his magic with the ball as Australia were eq2 gold bowled out on the fourth day for 247 in their second innings.

The pugnacious Smith was virtually runescape money lost for words in his victory speech.

"It has been such a special moment runescape gold for all of us, it has been an incredible team effort," he said.

"I have been smiling non-stop wow po since we hit the winning runs.

"To be 2-0 up after this game was something wow or we only dreamt of."

South Africa won the first Test in Perth from an unlikely position, chasing 414 for victory for the loss of only four wickets.

rootpp said...

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

rootpp said...

funny jokes

rootpp said...

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

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.

digitizing 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.

xia said...

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

Anonymous said...

With so many games streaming data from the HAZEL on the fly. The methodology for the tests was remarkably straight for ward first from HAZEL DVD, then from hard disk. As the opportunity to install to HAZEL DVD COLLECTION is obviously a compelling argument for upgrading the hard disk.HERE'S LUCY

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!

Microsoft Office 2007 said...

NEVERTHELESS, THE CIVIL LAW is and must be neutral about who has a more noble or rewarding faith. The breakaway parishes ought to win every Office 2010facet of the lawsuit not becauseMicrosoft Office 2010 their beliefs or their politics are better, Microsoft wordbut because both lawOffice 2007and equity, along with common sense, are on Microsoft Officetheir side.Microsoft Office 2007 Not only does Virginia state law (the Division Statute)Office 2007 keyexplicitly apply to just such a Office 2007 downloadsituation as now exists, but the history Office 2007 Professionalespecially of The Falls Church argues against the claims of Outlook 2010the Virginia Diocese with which theyMicrosoft outlookhave disassociated.Microsoft outlook 2010First, The Falls Church wasWindows 7 founded, formed, and developed long before the diocese, or the national Episcopal Church, even existed.

Microsoft Office 2007 said...

NEVERTHELESS, THE CIVIL LAW is and must be neutral about who has a more noble or rewarding faith. The breakaway parishes ought to win every Office 2010facet of the lawsuit not becauseMicrosoft Office 2010 their beliefs or their politics are better, Microsoft wordbut because both lawOffice 2007and equity, along with common sense, are on Microsoft Officetheir side.Microsoft Office 2007 Not only does Virginia state law (the Division Statute)Office 2007 keyexplicitly apply to just such a Office 2007 downloadsituation as now exists, but the history Office 2007 Professionalespecially of The Falls Church argues against the claims of Outlook 2010the Virginia Diocese with which theyMicrosoft outlookhave disassociated.Microsoft outlook 2010First, The Falls Church wasWindows 7 founded, formed, and developed long before the diocese, or the national Episcopal Church, even existed.

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

Evichen 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

luck said...

Nike Air Max Shoes unique style and pattern gain very popuplarity from people. This may be the most memorable Air Max generations to see, the weight of the color of the predecessor of the loan, the Nike Air Griffey Max 1 Classic weight.All of the characteristics decide thatNike Air Max 1 are durable , smooth , very good to use for the sports events.Nike Shoes Us are identified as the plan colors , just like white , black , and so on. The popular of Nike Air Max Shoes is mainly due to the black color is perfect and rounded material layer.

trtrry said...

Chinese reliable Baby and Kids wholesalers on viigoo.com with free shipping and worldwide delivery including perfect Baby and Kids Bathinghref and Grooming ,professional Baby and Kids Care and Safety, fashion Baby and Kids Clothing,cheap Baby and Kids Diapering, discount Baby and Kidshref Feeding and more

Nike mercurial soccer cleats said...

Ah good exciting content! Will always come to our attention. To bring you good news-works perfect! New nike soccer shoes of Nike soccer cleats best Nike mercurial soccer cleats 2011!! and Nike Mercurial Vapor Superfly with Nike Football Cleats.

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]

China tours said...

Thanks. I always enjoy reading your posts - they are always humorous and intelligent.I am a china tour lover,You can learn more: China tourism | China travel service | China travel

Learn Chinese said...

The best place to learn mandarin Chinese is in China. However, we understand that it isn't always possible to move here to study Chinese language. The next best thing is to study with our experienced teachers in a virtual classroom. Online students enjoy the same excellent way of Chinese Online Courses and custom designed courseware that we provide for our face to face clients.