Help using Base SAS procedures

Vægtning af data

Reply
New Contributor
Posts: 2

Vægtning af data

I langt de fleste procedurer (9.4) kan anvendes en kommando som

WEIGHT BY varnavn.

Hvorfor virker det ikke i procedurerne ANOVA og CLUSTER?

Contributor
Posts: 46

Re: Vægtning af data

Can you eleaborate on the issue.

Why you want weight By in ANOVA procedure ?

New Contributor
Posts: 2

Re: Vægtning af data

Weighting is necessary, when a disproportionally sample is used. And the statement works in almost all other procedures.
SAS Super FREQ
Posts: 3,482

Re: Vægtning af data

Most SAS/STAT procedures support the FREQ statement for easily specifying repeated observations. Some also support the

WEIGHT statement for weighted statistics.  To understand the difference, see "The difference between frequencies and weights in regression analysis."

 

PROC ANOVA supports the FREQ statement. If you want a weighted ANOVA, you can use PROC GLM.  PROC CLUSTER supports frequency analysis, but does not support the WEIGHT statement.

Ask a Question
Discussion stats
  • 3 replies
  • 139 views
  • 0 likes
  • 3 in conversation