squidgroup / squidsim_vignette Goto Github PK
View Code? Open in Web Editor NEWvignette for the updated squid R package
vignette for the updated squid R package
Need to be more specific about nesting, crossing and interactions - what make_structure actually does, and what limitations it has
More figure such as for the nested structure would help. And maybe then export the function to make them
Section 1.8. Why is it sometimes useful to not scale the predictors by their beta values (by adding I)? When is it useful to add an extra beta to a predictor that already has a beta value? These options are introduced as part of the simulate_population function, but to me it is not entirely clear when one would want to do that. I think a brief explanation and perhaps an example would be helpful. The vignette is very easy to read and straightforward, but here my reading flow got interrupted.
Here some feedback for the squidSim vignette:
http://squidgroup.org/squidSim_vignette/2.4-randomslopes.html includes an "interactions" argument in the simulations, yet there is no interaction included in the model. This term seems to be used to set-up random-slope model, which includes a multiplication of a parameter vector, and a predictor, which is not an "interaction" as in the classical fixed-effects sense. Thus, the "interaction" terminology might be confusing.
squidSim_vignette/07-temporal.Rmd
Line 86 in 0ff82e7
Line 97 in 0ff82e7
squidSim_vignette/02-sim_pop.Rmd
Line 669 in 0ff82e7
squidSim_vignette/02-sim_pop.Rmd
Line 686 in 0ff82e7
squidSim_vignette/02-sim_pop.Rmd
Line 846 in 0ff82e7
squidSim_vignette/02-sim_pop.Rmd
Line 848 in 0ff82e7
At the moment predictors can vary at the individual or observation level. But in many instances the same predictor vary at both levels. We can consider allowing the same predictor to vary at both levels. With different effects at each level. In a way we could simulate among and within individual variation in the predictors, as we simulate among and within individual variation in the response due to unknown sources. I also found a bit confusing when the cov argument refer to the predictors and when directly to the phenotypes.
While reading the vignette, I noticed that the residual variable in the output data is sometimes named residual
and other times residual_effect
. It should have the same name for all simulations to avoid confusion.
Relating to this, in the section 6.2 of the vignette, this code returns an error because residual_effect
was used for the model formula instead of residual
.
squid_data <- simulate_population(
parameters=list(
year_cont = list(
group="year",
names= "linear_effect",
covariate=TRUE,
beta=0.3,
amplitude = 2, # |A| = the amplitude
period = 10,
h_shift = 3,
v_shift = 5
),
year = list(
vcov = 1.2
),
residual=list(
vcov = 1
)
),
data_structure= make_structure(structure = "year(20) + sex(2)/individual(50)",N=1000),
model=" B =(2*pi) / abs(period);
cyclic_effect = amplitude*sin(B*I(linear_effect) - B^2*h_shift ) + v_shift;
y = linear_effect + cyclic_effect + year_effect + residual_effect"
)
Can take the exercises from the workshop and add in to vignette. Can have on own page utilise the code hiding part to hide solution code, or have solution on seperate page
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.