[SOLVED] CS代考计算机代写 For questions 1-3 use the “crabs” dataset in the MASS package. The crabs data frame has 200 rows and 8 columns, describing 5 morphological measurements on 50 crabs each of two colour forms and both sexes, of the species Leptograpsus variegatus collected at Fremantle,

30 $

File Name: CS代考计算机代写_For_questions_1-3_use_the_“crabs”_dataset_in_the_MASS_package._The_crabs_data_frame_has_200_rows_and_8_columns,_describing_5_morphological_measurements_on_50_crabs_each_of_two_colour__forms_and_both_sexes,_of_the_species_Leptograpsus__variegatus_collected_at_Fremantle,.zip
File Size: 2797.74 KB

SKU: 2833001322 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


For questions 1-3 use the “crabs” dataset in the MASS package. The crabs data frame has 200 rows and 8 columns, describing 5 morphological measurements on 50 crabs each of two colourforms and both sexes, of the species Leptograpsusvariegatus collected at Fremantle,
W. Australia. The variables are:

•sp: species – “B” or “O” for blue or orange.

•sex: M or F

•index: 1:50 within each of the four groups.

•FL: frontal lobe size (mm).

•RW: rear width (mm).

•CL: carapace length (mm).

•CW: carapace width (mm).

•BD: body depth (mm).

•Estimating the Differences between Two Independent Samples
You want to know if there is a difference between the body depth of male and female crabs. First, plot side by side violin plots. Then, write, and run, an R script, using the BEST package that a) produces the posterior distribution for difference in means and the posterior distribution for the difference in standard deviations for male and female crabs. b) prints out a summary of the results, setting the HDI at 89%, the ROPE at ±0.1, and calculating the percentage of the difference in means greater that 0.2. c) plots the posterior of the difference in means, and difference in standard deviations indicating the 89% HDI range.
•Difference in Means, with Interaction
Now you want to estimate the difference in means, but in a model with an interaction be- tween “sex” and “sp”. Use the MCMCregress command. Print the summary and plot the traces and densities.

•Estimating the Correlation between BD and RW
Write, and run, an R script that produces an MCMC sample from the posterior distribution of the correlation (ρ) between BD and RW. Plot the trace and density of ρ and the two σ s.

•Bayes Factors

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS代考计算机代写 For questions 1-3 use the “crabs” dataset in the MASS package. The crabs data frame has 200 rows and 8 columns, describing 5 morphological measurements on 50 crabs each of two colour forms and both sexes, of the species Leptograpsus variegatus collected at Fremantle,
30 $