# rstatistics

1. ### How are svymean, svyby, etc useful to understand a causal relationship?

I am sitting on a data project and got totally stuck on following question: Justify which population quantities of the variables included in your project could be of interest (e.g. svymean(), svytotal(), svyby(), svyciprop()) How could they provide you with a better understanding about the...
2. ### Which stats test should I use?

I have an experiment to look at habitat preferences of beetles and the effect of competition. In the first test, a beetle is on his own in an arena and I measured the % of time he spends in each of THREE types of habitat (open, bush and underground). I repeat this experiment with several...
3. ### R shiny: Storing reactive data as a dataframe with factor values for predictive model

i made a random forest predictive model and want my users to input the independent variables and predict the dependent variable. i'm using shiny to implement this. i am getting the following error as the reactive values are stored as character inputs where as my predictive model is built with...
4. ### Generate Grouped Data with Exact Correlations, Means, and SD

want to generate data with the following constraints. There is one factor and two numeric variables. Note that the desired mean structure is broken down by factor, which is what makes this a challenging problem. Correlation between two variables is set (e.g., .50). Mean/SD for group (there...
5. ### What model should I use? Studbook data

Hi all, I use R and want to analyze a dataset from a studbook that contains information of populations of the same species on different locations. I want to see if there are differences between these populations. The response variables are Lx (survivorship), which is a probability, and Mx...