Learn R Programming

sgdGMF (version 1.0)

print.sgdgmf: Print the fundamental characteristics of a GMF

Description

Print some summary information of a GMF model.

Usage

# S3 method for sgdgmf
print(x, ...)

Value

No return value, called only for printing.

Arguments

x

an object of class sgdgmf

...

further arguments passed to or from other methods

Examples

Run this code
# Load the sgdGMF package
library(sgdGMF)

# Generate data from a Poisson model
data = sim.gmf.data(n = 100, m = 20, ncomp = 5, family = poisson())

# Fit a GMF model with 3 latent factors
gmf = sgdgmf.fit(data$Y, ncomp = 3, family = poisson())

# Print the GMF object
print(gmf)

Run the code above in your browser using DataLab