You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importtaxusastx# at the moment importing data has to be handled by the usercovariates, counts=get_mock_data()
gp=tx.GP('~ time + treatment', covariates, counts, kernel='rbf', likelihood='poisson')
elbo=gp.fit()
likelihood_ratio_rbf=tx.LRT(
full_formula='~ time + treatment',
reduced_formula='~ time',
covariates=covariates,
expression=counts,
kernel='rbf',
likelihood='nb'
)
likelihood_ratio_linear=tx.LRT(
full_formula='~ C(time) + C(treatment) + C(time) : C(treatment)',
reduced_formula='~ C(time) + C(treatment)',
covariates=covariates,
expression=counts,
kernel='linear',
likelihood='nb'
)