Computing optimal sampling designs for two-stage studies



18


Stata Technical Bulletin


STB-58


Options

level (#) specifies the confidence level, in percent, for confidence intervals. The default is level (95) or as set by set level.

Examples

The likelihood ratio that a diagnostic procedure will detect a certain disease is defined as the ratio of the fraction of true
positives to the fraction of false positives. To determine this likelihood ratio,
θ, for which mainly high values are of interest,
m = 40 diseased persons were tested from whom
x = 36 had a positive test, and n = 80 nondiseased persons were tested from
whom
y = 16 had a positive test. We can now use koopman to compute the point estimate of θ and its confidence intervals.

. koopmani 36 40 16 80

I
I

Yes

Event

I

No I

Total

Proportion

Yes

Groupl
Group2

I
I

36

16

4 I

64 I

40

80

0.9000

0.2000

Total

I

I

52

68 I

120

0.4333

I

I

I_____

Point

I
estimate    I

[957. Conf

Interval]

Odds Ratio

I

4.5

I

2.939633

7.152252

. koopmani 36 40

16 so,

I
I

level(99)

Event

Yes

I

No I

Total

Proportion

Yes

Groupl
Group2

I
I

36

16

4 I

64 I

40

80

0.9000

0.2000

Total

I

I

52

68 I

120

0.4333

I
I

I_____

Point

I
estimate    I

[997. Conf

Interval]

Odds Ratio

I

4.5

I

2.598043

8.283284

koopman works like koopmani except that it obtains the entries in the tables by summing data. We specify three variables.
The first represents whether the event occurred, the second represents which group the observation belongs to, and the third
variable a weight that gives the total number of subjects in this observation. An observation may reflect a single subject or a
group of subjects. If an observation represents a single subject, we have the individual data in which the weight for each subject
is 1.

. clear
. use koopman

. list

event group        pop

1.           1            1            36

2.          0           1            4

3.         1          2          16

4.         0          2         64

. koopman event group [freq=pop], level(90)

I
I

Yes

Event

I

No I

Total

Proportion

Yes

-----------------+

Groupl I

36

4 I

40

0.9000

Group2 I

16

64 I

80

0.2000

Total I
I

52

68 I

I

120

0.4333

I

I
_________________I___

Point

I
estimate    I

[907. Conf

Interval]

-----------------I---

Odds Ratio I

4.5

I

3.136696

6.632661



More intriguing information

1. The Complexity Era in Economics
2. Human Rights Violations by the Executive: Complicity of the Judiciary in Cameroon?
3. The name is absent
4. Conservation Payments, Liquidity Constraints and Off-Farm Labor: Impact of the Grain for Green Program on Rural Households in China
5. Tax systems and tax reforms in Europe: Rationale and open issue for more radical reforms
6. Examining the Regional Aspect of Foreign Direct Investment to Developing Countries
7. Non-farm businesses local economic integration level: the case of six Portuguese small and medium-sized Markettowns• - a sector approach
8. The name is absent
9. Palkkaneuvottelut ja työmarkkinat Pohjoismaissa ja Euroopassa
10. Barriers and Limitations in the Development of Industrial Innovation in the Region
11. Une nouvelle vision de l'économie (The knowledge society: a new approach of the economy)
12. PROJECTED COSTS FOR SELECTED LOUISIANA VEGETABLE CROPS - 1997 SEASON
13. The name is absent
14. Multifunctionality of Agriculture: An Inquiry Into the Complementarity Between Landscape Preservation and Food Security
15. Healthy state, worried workers: North Carolina in the world economy
16. TECHNOLOGY AND REGIONAL DEVELOPMENT: THE CASE OF PATENTS AND FIRM LOCATION IN THE SPANISH MEDICAL INSTRUMENTS INDUSTRY.
17. A Rare Presentation of Crohn's Disease
18. Benefits of travel time savings for freight transportation : beyond the costs
19. Willingness-to-Pay for Energy Conservation and Free-Ridership on Subsidization – Evidence from Germany
20. The Modified- Classroom ObservationScheduletoMeasureIntenticnaCommunication( M-COSMIC): EvaluationofReliabilityandValidity