@@ -2606,12 +2606,10 @@ def _fit(
2606
2606
2607
2607
def lrt (
2608
2608
data ,
2609
- reduced_formula : str = None ,
2610
- full_formula : str = None ,
2611
2609
reduced_formula_loc : str = None ,
2612
2610
full_formula_loc : str = None ,
2613
- reduced_formula_scale : str = None ,
2614
- full_formula_scale : str = None ,
2611
+ reduced_formula_scale : str = "~1" ,
2612
+ full_formula_scale : str = "~1" ,
2615
2613
as_numeric : Union [List [str ], Tuple [str ], str ] = (),
2616
2614
init_a : Union [np .ndarray , str ] = "AUTO" ,
2617
2615
init_b : Union [np .ndarray , str ] = "AUTO" ,
@@ -2621,7 +2619,7 @@ def lrt(
2621
2619
size_factors : np .ndarray = None ,
2622
2620
batch_size : int = None ,
2623
2621
training_strategy : Union [str , List [Dict [str , object ]], Callable ] = "AUTO" ,
2624
- quick_scale : bool = None ,
2622
+ quick_scale : bool = False ,
2625
2623
dtype = "float64" ,
2626
2624
** kwargs
2627
2625
):
@@ -2632,10 +2630,6 @@ def lrt(
2632
2630
use wald() for constraints.
2633
2631
2634
2632
:param data: input data
2635
- :param reduced_formula: formula
2636
- Reduced model formula for location and scale parameter models.
2637
- :param full_formula: formula
2638
- Full model formula for location and scale parameter models.
2639
2633
:param reduced_formula_loc: formula
2640
2634
Reduced model formula for location and scale parameter models.
2641
2635
If not specified, `reduced_formula` will be used instead.
@@ -2711,15 +2705,6 @@ def lrt(
2711
2705
if len (kwargs ) != 0 :
2712
2706
logger .info ("additional kwargs: %s" , str (kwargs ))
2713
2707
2714
- if full_formula_loc is None :
2715
- full_formula_loc = full_formula
2716
- if reduced_formula_loc is None :
2717
- reduced_formula_loc = reduced_formula
2718
- if full_formula_scale is None :
2719
- full_formula_scale = full_formula
2720
- if reduced_formula_scale is None :
2721
- reduced_formula_scale = reduced_formula
2722
-
2723
2708
if isinstance (as_numeric , str ):
2724
2709
as_numeric = [as_numeric ]
2725
2710
@@ -2817,7 +2802,7 @@ def wald(
2817
2802
size_factors : np .ndarray = None ,
2818
2803
batch_size : int = None ,
2819
2804
training_strategy : Union [str , List [Dict [str , object ]], Callable ] = "AUTO" ,
2820
- quick_scale : bool = None ,
2805
+ quick_scale : bool = False ,
2821
2806
dtype = "float64" ,
2822
2807
** kwargs
2823
2808
):
0 commit comments