Question

In: Statistics and Probability

Want to preform profile analysis on groups that are not independent. Suppose that the data, spouse,  from...

Want to preform profile analysis on groups that are not independent. Suppose that the data, spouse,  from profileR in R, were a sample of couples, with husbands and wives each rating their own spouses. Formulate and test the same first two hypotheses (parallel and coincident) as were discussed in class. Suggest a way to formulate and test the third hypothesis(level).

Will rate positively, thanks

Solutions

Expert Solution

The pbg function implements three hypothesis tests. These tests are whether the profiles are parallel, have equal levels, and are flat across groups defined by the grouping variable. If parallelism is rejected, the other two tests are not necessary. In that case, flatness may be assessed within each group, and various within- and between-group contrasts may be analyzed.

here flat mean concident.

Formate of code :
pbg(data, group, original.names = FALSE, profile.plot = FALSE)

Object of class profg is returned, listing the following components:

data.summary - Means of observed variables by the grouping variable

corr.table - A matrix of correlations among observed variables splitted by the grouping variable

profile.test - Results of F-tests for testing parallel, coincidential, and level profiles across two groups.

### R - Code
Load package :
library(ggplot2)
library (RcolorBrewer)
library (reshape)
library (lavaan)

#Note : if above package is not available in your r package directory. then please install them using following command
install.package("package name", dependencies = TRUE) .then load.

data(spouse)
mod <- pbg(data=spouse[,1:4], group=spouse[,5], original.names=TRUE, profile.plot=TRUE)
print(mod) #prints average scores in the profile across two groups
summary(mod) #prints the results of three profile by group hypothesis tests
####
run above code in r you will get output as below.

# OUTPUT
Loading required package: ggplot2
Loading required package: RColorBrewer
Loading required package: reshape
Loading required package: lavaan
This is lavaan 0.5-23.1097
lavaan is BETA software! Please report any bugs.

Data Summary:
       Husband     Wife
item1 3.900000 3.833333
item2 3.966667 4.100000
item3 4.333333 4.633333
item4 4.400000 4.533333
Call:
pbg(data = spouse[, 1:4], group = spouse[, 5], original.names = TRUE, 
    profile.plot = TRUE)

Hypothesis Tests:
$`Ho: Profiles are parallel`
  Multivariate.Test Statistic Approx.F num.df den.df    p.value
1             Wilks 0.8785726 2.579917      3     56 0.06255945
2            Pillai 0.1214274 2.579917      3     56 0.06255945
3  Hotelling-Lawley 0.1382099 2.579917      3     56 0.06255945
4               Roy 0.1382099 2.579917      3     56 0.06255945

$`Ho: Profiles have equal levels`
            Df Sum Sq Mean Sq F value Pr(>F)
group        1  0.234  0.2344   1.533  0.221
Residuals   58  8.869  0.1529               

$`Ho: Profiles are flat`
         F df1 df2      p-value
1 24.82071   3  57  0.0001554491


Related Solutions

The table below represents data on a variable of interest collected from two independent groups, in...
The table below represents data on a variable of interest collected from two independent groups, in which each group was randomly assigned 10 participants. A researcher is interested in testing whether the two groups have different means. Group 1 = 4, 4, 2, 6, 3, 5, 6, 1, 5, 4 Group 2 = 6, 10, 4, 7, 8, 5, 9, 10, 6, 7 Please bold answers and show work a) What are the appropriate hypothesis for this analysis? b) What...
Consider the following data from two independent groups: Liberals: 4, 1, 4, 2                             &nb
Consider the following data from two independent groups: Liberals: 4, 1, 4, 2                                     Conservatives: 5, 1, 3, 3, 4 Calculate the t statistic Calculate the 95% confidence interval. Calculate Cohen’s d.
We want to compare the weights of two independent groups of mice. Group 1 consists of...
We want to compare the weights of two independent groups of mice. Group 1 consists of 14 mice that were fed only cheese. Group 2 consists of 18 mice that were fed only walnuts. Group 1 information: sample mean x1-bar = 18 and sample standard deviation s1 = 4. Group 2 information: sample mean x2-bar = 15 and sample standard deviation s2 = 7. Perform a 2-sided hypothesis test of H0: mu1 = mu2 against H1: mu1 not equal to...
Consider the following data from two independent groups: Liberals: 2, 1, 3, 2 Conservatives: 4,3,3,5,2,4 Calculate...
Consider the following data from two independent groups: Liberals: 2, 1, 3, 2 Conservatives: 4,3,3,5,2,4 Calculate s2 for each group Calculate dfx, dfy, and dftotal Determine the critical values for t, assuming a two-tailed test with a p level of .05 Calculate pooled variance, s2pooled Calculate the variance version of standard error for each group Calculate the variance and the standard deviation of the distribution of the differences between means Calculate the t statistic
Suppose you want to test the claim the the paired sample data given below come from...
Suppose you want to test the claim the the paired sample data given below come from a population for which the mean difference is μd=0μd=0. x: 51 66 54 78 89 71 70   y: 91 63 56 79 59 77 56 Use a 0.050.05 significance level to find the following: (a)    The mean value of the differnces dd for the paired sample data d⎯⎯⎯=d¯= (b)    The standard deviation of the differences dd for the paired sample data sd=sd= (c)    The t test statistic...
Suppose you want to test the claim the paired sample data given below come from a...
Suppose you want to test the claim the paired sample data given below come from a population for which the mean difference is ??=0. x 73 59 88 59 67 86 51 y 67 65 80 55 76 67 57 Use a 0.05 significance level to find the following: (a)    The mean value of the difference ? for the paired sample data d¯= (b)    The standard deviation of the differences ? for the paired sample data ??= (c)    The t-test statistic ?= (d)    The...
Suppose you want to test the claim that μ1 = μ2. Two samples are random, independent,...
Suppose you want to test the claim that μ1 = μ2. Two samples are random, independent, and come from populations that are normally distributed. The sample statistics are given below. Assume that σ 2 1 = σ 2 2. At a level of significance of α = 0.05, when should you reject H0? n1 = 14 n2 = 12 x1 = 21 x2 = 22 s1 = 2.5 s2 = 2.8
Suppose you want to test the claim that μ1 > μ2. Two samples are random, independent,...
Suppose you want to test the claim that μ1 > μ2. Two samples are random, independent, and come from populations that are normally distributed. The sample statistics are given below. Assume that  ≠ . At a level of significance of , when should you reject H0? n1 = 18 n2 = 13 1 = 595 2 = 580 s1 = 40 s2 = 25
Suppose you want to test the claim that μ1 = μ2. Two samples are random, independent,...
Suppose you want to test the claim that μ1 = μ2. Two samples are random, independent, and come from populations that are normally distributed. The sample statistics are given below. Assume that variances of two populations are not the same (σ21≠ σ22). At a level of significance of α = 0.01, when should you reject H0? n1 = 25 n2 = 30 x1 = 27 x2 = 25 s1 = 1.5 s2 = 1.9 Reject H0 if the standardized test...
Given here are the data from a dependent variable and two independent variables. The second independent...
Given here are the data from a dependent variable and two independent variables. The second independent variable is an indicator variable with several categories. Hence, this variable is represented by x2, x3, and x4. How many categories are there for this independent variable? Use a computer to perform a multiple regression analysis on this data to predict y from the x values. Discuss the output and pay particular attention to the dummy variables. y x1 x2 x3 x4 11 1.9...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT