pd_lm.fit: The work horse for fitting the probabilistic dropout model

Description Usage Value

View source: R/pd_lm.R

Description

If there is no location and variance moderation and no missing values, the model is fitted with 'lm'.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
pd_lm.fit(
  y,
  X,
  dropout_curve_position,
  dropout_curve_scale,
  location_prior_mean = NULL,
  location_prior_scale = NULL,
  variance_prior_scale = NULL,
  variance_prior_df = NULL,
  location_prior_df = 3,
  method = c("analytic_hessian", "analytic_grad", "numeric"),
  verbose = FALSE
)

Value

a list with the following entries

coefficients

a named vector with the fitted values

n_approx

the estimated "size" of the data set (n_hat - variance_prior_df)

df

the estimated degrees of freedom (n_hat - p)

s2

the estimated unbiased variance

n_obs

the number of response values that were not 'NA'


proDA documentation built on Nov. 8, 2020, 5:01 p.m.