survey

How to create an ID based PHP form?

纵饮孤独 提交于 2020-01-06 07:12:29
问题 I want to basically create a PHP form that stores data into a database - based on what you enter - this is of course basic. However, there is one quirk: This php form must be id based - given a link. Let's say something like mywebsite.com/form.php=id446 will generate a much different form than something like mywebsite.com/form.php=id447 . The difference in both the forms is about 3-4 form fields(whether they appear or not), rest is the same Now, I could brute force this and just make form446

How to use the R survey package to analyze multiple response questions in a weighted sample?

余生长醉 提交于 2020-01-03 15:56:22
问题 I'm relatively new to R. I am wondering how to use the 'survey' package (http://r-survey.r-forge.r-project.org/survey/) to analyze a multiple response question for a weighted sample? The tricky bit is that more than one response can be ticked so the responses are stored across several columns. Example: I have survey data from 500 respondents who were drawn randomly from across 10 districts. Let's say the main question that was asked was (stored in column H1_AreYouHappy): 'Are you happy?' -

Loop to add new columns with ifelse

☆樱花仙子☆ 提交于 2020-01-03 09:01:47
问题 I would like to make my code more efficient, I have a survey where my data looks like: survey <- data.frame( x = c(1, 6, 2, 60, 75, 40, 27, 10), y = c(100, 340, 670, 700, 450, 200, 136, 145)) #Two lists: A <- c(3, 6, 7, 27, 40, 41) t <- c(0.10, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16) What I did was create new columns, like this: z <- ifelse(survey$x %in% A), 0, min(t)) for (i in t) { survey[paste0("T",i)] <-z survey[paste0("T",i)] <-ifelse (z > 0, i, z) } But with that code it takes a while, is

Why do attempts to filter/subset a raked survey design object fail?

故事扮演 提交于 2020-01-03 02:47:05
问题 I'm trying to filter rows in a survey design object to exclude a particular subset of data. In the example below, which consists of survey data from several schools, I'm trying to exclude data from schools in Alameda County, California. Surprisingly, when the survey design object includes weights created by raking, attempts to filter or subset the data fail. I think this is a bug, but I'm not sure. Why does the presence of raked weights alter the result of attempting to filter or subset the

Is it impractical to put an HTML form into an email? [closed]

风格不统一 提交于 2020-01-02 01:18:17
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . I've had several clients ask this, and I've never been able to get or give a satisfactory answer. Can you (practically) put a working form into an HTML email? My understanding is that you can, but that there's no guarantee of email clients properly handling it, so that method

.NET/Mono Install Base

点点圈 提交于 2020-01-01 08:26:10
问题 Me and some friends are considering writing a new FOSS project, and the debate is divided between using .NET or something else. So I am wondering if there is an advertised install base for Mono on Linux machines? and, if there known install base of Mono or the Microsoft .Net on windows machines? Thanks. Install Base - A measure of the number of units of a particular type of system actually in use. 回答1: Hanselman gives a stat for .Net Framework Installs. He places it over 90% of PCs . with

How to persist branching logic into database?

∥☆過路亽.° 提交于 2020-01-01 05:16:10
问题 We are building a survey engine for our internal use. I would like to know how to persist the question branching logic into the database? Any body done this before or any ideas on the schema for the database? If the user responses with an answer, we need to skip to the next questions based on the logic added to the questions Each question can have multiple logic added to it. For eg: Question: Is it Sunny, Raining or Cloudy? Answer: Raining. The next question should be based on the previous

How to make beautiful borderless geographic thematic/heatmaps with weighted (survey) data in R, probably using spatial smoothing on point observations

别说谁变了你拦得住时间么 提交于 2020-01-01 03:24:06
问题 Ever since Joshua Katz published these dialect maps that you can find all over the web using harvard's dialect survey, I have been trying to copy and generalize his methods.. but much of this is over my head. josh disclosed some of his methods in this poster, but (as far as I know) has not disclosed any of his code. My goal is to generalize these methods so it's easy for users of any of the major United States government survey data sets to plop their weighted data into a function and get a

How to make beautiful borderless geographic thematic/heatmaps with weighted (survey) data in R, probably using spatial smoothing on point observations

无人久伴 提交于 2020-01-01 03:24:06
问题 Ever since Joshua Katz published these dialect maps that you can find all over the web using harvard's dialect survey, I have been trying to copy and generalize his methods.. but much of this is over my head. josh disclosed some of his methods in this poster, but (as far as I know) has not disclosed any of his code. My goal is to generalize these methods so it's easy for users of any of the major United States government survey data sets to plop their weighted data into a function and get a

R Looping through in survey package

扶醉桌前 提交于 2019-12-30 05:35:07
问题 I'm having problems looping through variables using the survey package. Let's say I have a subset of variables I collect into a dataframe together with the survey weight and I want to carry out chi-square tests. Bearing in mind the problems with multiple testing, I would still like to test all unique combinations. This is normally relatively straightforward in R, and there's a good example here. Unfortunately this become harder in the survey package because items need to be in the design