Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.

# Re: st: record a set of values when conditions are satisfied.

 From Austin Nichols To statalist@hsphsun2.harvard.edu Subject Re: st: record a set of values when conditions are satisfied. Date Mon, 4 Jul 2011 11:08:45 -0400

```Zhi Su <su.zh@husky.neu.edu>:
This is an ill-posed problem.  You don't say whether each coef  b1,
b2, b3, b4 is supposed to be just insignificant, at what level, or
whether a joint test of significance is the criterion. You don't say
anything about the distribution of the variables, or how the VCE is
calculated, all of which could influence your solution.  Further, in a
multi-dimensional setting like this, there could be many solutions,
and the direction you approach from could easily determine which
solution you find.

E.g. suppose v's are all Y plus negligible error so that any r
approaching 1 drives variation in Y to zero; then any r approaching 1
is a solution, but so is any sum of r's approaching one.  There will
be various linear combinations of r that " just make b1, b2,
> b3, b4 go from signicant to insignificant."

On Sun, Jul 3, 2011 at 11:36 PM, Zhi Su <su.zh@husky.neu.edu> wrote:
> Dear Statalists,
>
>  I need to do some sensitivity tests that test how the coefficients
> of a set of independent variables change according to the changes of
> some ratios. The dependent is
>  Y-r1*v1-r2*v2-r3*v3-r4*v4, where Y, v1, v2, v3 and v4 are known and
> r1, r2, r3, r4 are random values on the interval [0,1). The
> independent varaibles are x1, x2, x3, x4.
>  The regression is
>  Y-r1*v1-r2*v2-r3*v3-r4*v4=b0+b1*x1+b2*x2+b3*x3+b4*x4
>  When r1, r2, r3, r4 all equal to 0, b1, b2, b3, b4 are all significant.
>  Then I need to change the values of the ratios r1, r2, r3, r4. The
> magnititudes and significance of b1, b2, b3, b4 will change.
>  I need to record the values of r1, r2, r3, r4 that just make b1, b2,
> b3, b4 go from signicant to insignificant.
>  Do anyone have some ideas about the codes for such test?

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
```