Question

What is the Stata code for winorize 5% and 95 %? winorize salary

What is the Stata code for winorize 5% and 95 %?

winorize salary

Homework Answers

Answer #1

Stata Code:

Winsorizing variable at 5 % and 95 %

winsor2 name_of_variable, cuts(5 95)

You can use salary variable name in place of name_of_variable

[ winsor2 salary, replace cuts(5 95) ]

Explanation:

winsor and winsor2 gives almost same results with large samples.

name_of_variable: variable specifies ( i.e. salary)

replace : replaces the variables with their winsorized or trimmed counterpart.

cuts : if we do not specify any numbers by default median is taken i.e. 50 or 0.5 .

Here in our example we have taken 95% and 5 %

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
STATA Write code to simulate 5000 of these experiments (each with n = 50 flips of...
STATA Write code to simulate 5000 of these experiments (each with n = 50 flips of the biased coin, taking p = 0.3). Calculate your estimate of p for each repetition and calculate your estimate of the variance of your estimate for each repetition. Compare the average of your 5000 variance estimates to the empirical variance of the 5000 estimates of p.
You are given the following partial Stata output: regress y x z Source | SS df...
You are given the following partial Stata output: regress y x z Source | SS df MS -------------+--------------------------------------- Model | 810                  1                                Residual |         270               19 -------------+---------------------------------------- Total |     1080                    20 ------------------------------------------------------------------------------ y |     Coef. Std. Err. t P>|t| [95% Conf. Interval] ------------------------------------------------------------------------------   x| 9 1.5   z| 6 3.0 Number of obs = 21 F( 2, 18) = Prob > F = R-squared = Adj R-squared = Root MSE = Fill out all the remaining entries in this Stata output....
What is the frequency distribution of a variable? What are the Stata commands for creating a...
What is the frequency distribution of a variable? What are the Stata commands for creating a bar chart that displays the number of cases (or the percentage of cases) in which the variable region takes each of its possible values? What does it mean for a distribution to be called symmetric or asymmetric? What does it mean for a distribution to be skewed to the right or skewed to the left?
Suppose that 15 Stata users and 22 Excel users were chosen at random to conduct a...
Suppose that 15 Stata users and 22 Excel users were chosen at random to conduct a series of statistical analyses. The Stata users took 20 minutes on average to complete the tests, with a standard deviation of 5 minutes. The Excel users took 23 minutes on average, with a standard deviation of 10 minutes. Assume test completion time in both cases is normally distributed. Assume that the standard deviations are known from the population. At the 10% significance level, prove...
Suppose a 95% confidence interval for the mean salary of college graduates in a town in...
Suppose a 95% confidence interval for the mean salary of college graduates in a town in Mississippi is given by [$36,815, $43,185]. The population standard deviation used for the analysis is known to be $13,000. [You may find it useful to reference the z table.] a. What is the point estimate of the mean salary for all college graduates in this town? b. Determine the sample size used for the analysis. (Round "z" value to 3 decimal places and final...
1) Determine the 95% confidence interval for the average salary in Vineland if a sample of...
1) Determine the 95% confidence interval for the average salary in Vineland if a sample of 125 individuals had an average salary of $43,000 and the population standard deviation is $3350 2)The dean is preparing a report for the State of New Jersey and wants to determine a 90% confidence interval for the average income of their student population within $250 dollars of the population average. If he knows the population standard deviation is $2250, how many students will he...
5. The salaries at a corporation are normally distributed with an average salary of $19,000 and...
5. The salaries at a corporation are normally distributed with an average salary of $19,000 and a standard deviation of $4,000. a. What is the probability that an employee will have a salary between $12,520 and $13,480? b. What is the probability that an employee will have a salary more than $11,880? c. What is the probability that an employee will have a salary less than $28,440? d. What is the probability that an employee will have a salary between...
Hello, below is the STATA question i am having trouble with. I understand you dont have...
Hello, below is the STATA question i am having trouble with. I understand you dont have the dataset, however, is there any help you may please provide? Maybe the commands in STATA needed for this problem? Thank you. Please download the hprice dataset (housing prices) and answer the following questions: 1. Run a regression where your x variable is age and your y variable is price. a) What is the null hypothesis? Alternate hypothesis? b) Do you expect the coefficient...
What sample size is needed to give a margin of error of 5% with a 95%...
What sample size is needed to give a margin of error of 5% with a 95% confidence interval? Sample size =
1. The salary of mayors in Canadas cities is reported to be normally distributed with mean...
1. The salary of mayors in Canadas cities is reported to be normally distributed with mean $120,000 and standard deviation $12,121. To test this claim, 5 Canadian cities are selected at random and it is found that the average salary is $132,389. Test at α = 0.05 whether the salary is different from the claim. Question: Hypothesis test (Four steps) and Construct a 95% confidence interval for the average salary of mayors in Canadas cities.