This function estimates code effects using left and right embeddings from source and target sites.
Arguments
- S.1
SPPMI from the source site.
- S.2
SPPMI from the target site.
- n1
The number of codes from the source site.
- n2
The number of codes from the target site.
- U.1
The left embeddings left singular vectors times the square root of the singular values from the source site.
- U.2
The left embeddings left singular vectors times the square root of the singular values from the target site.
- V.1
The right embeddings right singular vectors times the square root of the singular values from the source site.
- V.2
The right embeddings right singular vectors times the square root of the singular values from the target site.
- common_codes
The list of overlapping codes.
- zeta.int
The initial estimator for the code effects.
- lambda
The tuning parameter controls the intensity of penalization on the code effect.
- p
The length of an embedding.