Hi everyone,
I have a sample of 166 bonds (i.e. n=166). I have broken these down into subsamples based on some characteristics of the bonds, ending up with 8 subsamples (these are not mutually exclusive) based on three dummy variables.
For each of these subsamples, I want to test if the dependent variable (Yield) is significantly different from zero. I have run Shapiro Wilks and for 6 of the 8 subsamples I reject the normality hypothesis. From my understanding the Wilcoxon rank sum/Mann Whitney U-test is only used to test if the means from two samples are significantly different from each other. However, I only have one sample (i.e. each subsample), and I want to test if that subsample's mean is significantly different form zero. How do I go about doing this? For the two subsamples where I don't reject normality, should I run a one sample t test or should I use a non-parametric test for all subsamples?
Best,
Nils
Related Posts with How to test if the mean of a sample is significantly different from zero
Weight and mathematically adjust certain valuesHi All, I am looking to generate some new variables on the dataset listed below, but I'm not quite …
How would I predict a wage from a quadratic regression?Hi there, I am currently trying to describe the relationship between wage and education using the re…
Creating identifiers based on two groupsHi there, Statalisters, I have a question similar to one that was asked some years ago, and I am no…
Count the digits of variableHello, I would like to create a variable ('digit') that counts the number of digits of a number var…
Group identifiers with conditional _n-1 statementsHello, I have data where individuals may be represented multiple times in the data and I am trying t…
Subscribe to:
Post Comments (Atom)
0 Response to How to test if the mean of a sample is significantly different from zero
Post a Comment