rescale: Rescale Latent Variable Scores

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Rescale standardized latent variable scores to original scale of manifest variables

Usage

1
  rescale(pls, data = NULL)

Arguments

pls

object of class "plspm"

data

Optional dataset (matrix or data frame) used when argument dataset=NULL inside pls.

Details

rescale requires all outer weights to be positive

Value

A data frame with the rescaled latent variable scores

Author(s)

Gaston Sanchez

See Also

plspm

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
## Not run: 
 ## example with customer satisfaction analysis

 # load data satisfaction
 data(satisfaction)

 # define inner model matrix
 IMAG = c(0,0,0,0,0,0)
 EXPE = c(1,0,0,0,0,0)
 QUAL = c(0,1,0,0,0,0)
 VAL = c(0,1,1,0,0,0)
 SAT = c(1,1,1,1,0,0)
 LOY = c(1,0,0,0,1,0)
 sat_path = rbind(IMAG, EXPE, QUAL, VAL, SAT, LOY)

 # define outer model list
 sat_blocks = list(1:5, 6:10, 11:15, 16:19, 20:23, 24:27)

 # define vector of reflective modes
 sat_modes = rep("A", 6)

 # apply plspm
 my_pls = plspm(satisfaction, sat_path, sat_blocks, modes = sat_modes,
              scaled=FALSE)

 # rescaling standardized scores of latent variables
 new_scores = rescale(my_pls)

 # compare standardized LVs against rescaled LVs
 summary(my_pls$scores)
 summary(new_scores)
 
## End(Not run)

Example output

      IMAG              EXPE              QUAL              VAL         
 Min.   :-3.2614   Min.   :-3.7932   Min.   :-3.6283   Min.   :-3.4872  
 1st Qu.:-0.4708   1st Qu.:-0.4596   1st Qu.:-0.5871   1st Qu.:-0.5144  
 Median : 0.1807   Median : 0.1005   Median : 0.1548   Median : 0.2309  
 Mean   : 0.0000   Mean   : 0.0000   Mean   : 0.0000   Mean   : 0.0000  
 3rd Qu.: 0.6819   3rd Qu.: 0.6762   3rd Qu.: 0.6235   3rd Qu.: 0.6140  
 Max.   : 1.7239   Max.   : 1.5224   Max.   : 1.7413   Max.   : 1.7239  
      SAT               LOY         
 Min.   :-3.9937   Min.   :-3.3690  
 1st Qu.:-0.3424   1st Qu.:-0.5544  
 Median : 0.1116   Median : 0.1740  
 Mean   : 0.0000   Mean   : 0.0000  
 3rd Qu.: 0.6139   3rd Qu.: 0.7095  
 Max.   : 1.8282   Max.   : 1.3761  
      IMAG             EXPE             QUAL              VAL        
 Min.   : 2.596   Min.   : 1.193   Min.   : 0.5741   Min.   : 1.015  
 1st Qu.: 6.741   1st Qu.: 6.716   1st Qu.: 5.9127   1st Qu.: 6.140  
 Median : 7.708   Median : 7.644   Median : 7.2151   Median : 7.426  
 Mean   : 7.440   Mean   : 7.478   Mean   : 6.9433   Mean   : 7.027  
 3rd Qu.: 8.452   3rd Qu.: 8.598   3rd Qu.: 8.0378   3rd Qu.: 8.086  
 Max.   :10.000   Max.   :10.000   Max.   :10.0000   Max.   :10.000  
      SAT              LOY         
 Min.   : 0.000   Min.   : 0.1693  
 1st Qu.: 6.272   1st Qu.: 6.0005  
 Median : 7.052   Median : 7.5094  
 Mean   : 6.860   Mean   : 7.1490  
 3rd Qu.: 7.914   3rd Qu.: 8.6190  
 Max.   :10.000   Max.   :10.0000  

plspm documentation built on May 2, 2019, 7:05 a.m.