survLm_model {rpms}R Documentation

Fit a linear model using data collected from a complex sample

Description

Fit a linear model using data collected from a complex sample

Usage

survLm_model(y, X, weights, strata, clusters)

Arguments

y

A vector of values

X

The design matrix of the linear model

weights

A vector of sample weights for each observation

strata

A vector of strata labels

clusters

A vector of cluster labels

Value

list containing coefficients, covariance matrix and the residuals


[Package rpms version 0.5.1 Index]