cf1.param {mapfit}R Documentation

Create CF1 with data information

Description

Crate CF1 with the first moment of a given data. This function calls cf1.param.linear and cf1.param.power to determine CF1. After execute 5 EM steps, the model with the smallest LLF is selected.

Usage

cf1.param(data, size, options, ...)

Arguments

data

A dataframe

size

An integer for the number of phases

options

A list of options for EM steps

...

Others. This can provide additional options for EM steps.

Examples

## Generate group data
dat <- data.frame.phase.group(c(1,2,0,4), seq(0,10,length.out=5))

## Create an instance of CF1
p <- cf1.param(data=dat, size=5)


[Package mapfit version 1.0.0 Index]