파이썬에서 StatsModel Linear Mixed Effects Models을 이해하려고합니다.Python - 클래스 메서드는 클래스 매개 변수를 상속합니까?
모델 클래스는 다음과 같다 '그룹의 매개 변수가
class statsmodels.regression.mixed_linear_model.MixedLM(endog, exog, groups,
exog_re=None, use_sqrt=True,
missing='none', **kwargs)
. 내 질문은
클래스 메서드는 클래스 매개 변수를 상속합니까?
묻는 이유는 클래스 methods의 경우 'groups'매개 변수를 포함하지 않는 from_formula 메소드가 있습니다. 그러나 그들이 쓰는 example 코드, 따라서 내 질문을 'from_formula'방법 안에 '그룹의 매개 변수를 포함
model = sm.MixedLM.from_formula("Weight ~ Time", data, re_formula="Time",
groups=data["Pig"])
,
에 클래스 메소드는 클래스의 매개 변수를 상속합니까?